Skip to content

Commit

Permalink
Fix CS/WS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 11, 2018
1 parent 77ec7e6 commit 68a8333
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Framework/MockObject/MockObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -986,15 +986,15 @@ public function testGetMockForClassWithSelfTypeHint(): void

public function testStringableClassDoesNotThrow(): void
{
/** @var StringableClass|PHPUnit\Framework\MockObject\MockObject $mock */
/** @var PHPUnit\Framework\MockObject\MockObject|StringableClass $mock */
$mock = $this->getMockBuilder(StringableClass::class)->getMock();

$this->assertInternalType('string', (string) $mock);
}

public function testStringableClassCanBeMocked(): void
{
/** @var StringableClass|PHPUnit\Framework\MockObject\MockObject $mock */
/** @var PHPUnit\Framework\MockObject\MockObject|StringableClass $mock */
$mock = $this->getMockBuilder(StringableClass::class)->getMock();

$mock->method('__toString')->willReturn('foo');
Expand Down Expand Up @@ -1060,7 +1060,7 @@ public function testDisableAutomaticReturnValueGeneration(): void

public function testDisableAutomaticReturnValueGenerationWithToString(): void
{
/** @var StringableClass|PHPUnit\Framework\MockObject\MockObject $mock */
/** @var PHPUnit\Framework\MockObject\MockObject|StringableClass $mock */
$mock = $this->getMockBuilder(StringableClass::class)
->disableAutoReturnValueGeneration()
->getMock();
Expand Down

0 comments on commit 68a8333

Please sign in to comment.