1 | <?php |
||
25 | class TermsServiceTest extends UnitTestCase |
||
26 | { |
||
27 | //<editor-fold desc="Public Methods"> |
||
28 | /** |
||
29 | * @covers \Tfboe\FmLib\Service\TermsService::__construct |
||
30 | */ |
||
31 | public function testConstructor() |
||
36 | |||
37 | /** |
||
38 | * @covers \Tfboe\FmLib\Service\TermsService::getLatestTerms |
||
39 | * @throws ReflectionException |
||
40 | * @uses \Tfboe\FmLib\Service\TermsService::__construct |
||
41 | */ |
||
42 | public function testGetLatestTerms() |
||
50 | //</editor-fold desc="Public Methods"> |
||
51 | |||
52 | //<editor-fold desc="Private Methods"> |
||
53 | /** |
||
54 | * @param EntityManagerInterface|MockObject $em |
||
55 | * @return TermsService |
||
56 | */ |
||
57 | private function service($em) |
||
61 | //</editor-fold desc="Private Methods"> |
||
62 | } |
||
63 |
This check looks at variables that have been passed in as parameters and 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.