| 1 | <?php |
||
| 13 | class SessionHandlerAwareTraitTest extends PHPUnitTestCase |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @return MockObject|SessionHandlerAwareTrait |
||
| 17 | */ |
||
| 18 | protected function buildMock() |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * @return MockObject|SessionHandlerInterface |
||
| 30 | */ |
||
| 31 | protected function buildSessionHandlerMock() |
||
| 40 | |||
| 41 | |||
| 42 | public function testSetGet() |
||
| 53 | } |
||
| 54 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.