-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Description
I'm testing my codebase miklcct/thin_php_app and in two of the test files phpstan throws an error:
------ ------------------------------------------------------------------------------------
Line test/View/StreamToStringTest.php
------ ------------------------------------------------------------------------------------
16 Call to an undefined method PHPUnit\Framework\MockObject\MockObject::__toString().
------ ------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------
Line test/View/StringToStreamTest.php
------ --------------------------------------------------------------------------------
16 Call to an undefined method PHPUnit\Framework\MockObject\MockObject::render().
------ --------------------------------------------------------------------------------
The mock objects are created by $iut = $this->getMockForTrait(StreamToString::class);
and $iut = $this->getMockForTrait(StringToStream::class);
, and the traits have the mentioned methods defined. PhpStorm type hints work on these 2 files.
MaSpeng
Metadata
Metadata
Assignees
Labels
No labels