| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function testSetGet() |
||
| 43 | { |
||
| 44 | $handlerAware = $this->buildMock(); |
||
| 45 | $handler = $this->buildSessionHandlerMock(); |
||
| 46 | |||
| 47 | $handlerAware->setSessionHandler($handler); |
||
| 48 | $this->assertInstanceOf( |
||
| 49 | SessionHandlerInterface::class, |
||
| 50 | $handlerAware->getSessionHandler() |
||
| 51 | ); |
||
| 52 | } |
||
| 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.