Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
11.2
Description
Test is marked as passing even though warning is logged and test is counted in failures.
Log with warning is attached.
Code to reproduce warning:
class Bar {} class FooTest extends \PHPUnit\Framework\TestCase { public function testGetBar() { $mock = $this->createMock( Bar::class ); $mock->expects( $this->any() ) ->method( 'getBarAAA' ) # <- method does not exist in class Bar ->willReturn( NULL ); } }
Attachments
Attachments
Issue Links
- links to