File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
tests/Framework/MockObject Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -986,13 +986,15 @@ public function testGetMockForClassWithSelfTypeHint(): void
986
986
987
987
public function testStringableClassDoesNotThrow (): void
988
988
{
989
+ /** @var StringableClass|PHPUnit\Framework\MockObject\MockObject $mock */
989
990
$ mock = $ this ->getMockBuilder (StringableClass::class)->getMock ();
990
991
991
992
$ this ->assertInternalType ('string ' , (string ) $ mock );
992
993
}
993
994
994
995
public function testStringableClassCanBeMocked (): void
995
996
{
997
+ /** @var StringableClass|PHPUnit\Framework\MockObject\MockObject $mock */
996
998
$ mock = $ this ->getMockBuilder (StringableClass::class)->getMock ();
997
999
998
1000
$ mock ->method ('__toString ' )->willReturn ('foo ' );
@@ -1058,6 +1060,7 @@ public function testDisableAutomaticReturnValueGeneration(): void
1058
1060
1059
1061
public function testDisableAutomaticReturnValueGenerationWithToString (): void
1060
1062
{
1063
+ /** @var StringableClass|PHPUnit\Framework\MockObject\MockObject $mock */
1061
1064
$ mock = $ this ->getMockBuilder (StringableClass::class)
1062
1065
->disableAutoReturnValueGeneration ()
1063
1066
->getMock ();
You can’t perform that action at this time.
0 commit comments