1 | <?php |
||
22 | class PagerfantaDataSourceTest extends \PHPUnit_Framework_TestCase |
||
23 | { |
||
24 | /** |
||
25 | * @var PagerfantaDataSource |
||
26 | */ |
||
27 | private $dataSource; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | protected function setUp() |
||
36 | |||
37 | public function testInheritance() |
||
42 | |||
43 | /** |
||
44 | * @return \PHPUnit_Framework_MockObject_MockObject|AdapterInterface |
||
45 | */ |
||
46 | private function createAdapterMock() |
||
50 | } |
||
51 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.