1 | <?php |
||
13 | final class DefinitionAnalyzerTest extends TestCase |
||
14 | { |
||
15 | /** |
||
16 | * @var DefinitionAnalyzer |
||
17 | */ |
||
18 | private $definitionAnalyzer; |
||
19 | |||
20 | protected function setUp() |
||
24 | |||
25 | public function testHasConstructorArguments() |
||
26 | { |
||
27 | $definition = new Definition(EmptyConstructor::class); |
||
28 | $this->assertFalse($this->definitionAnalyzer->shouldDefinitionBeAutowired($definition)); |
||
29 | } |
||
30 | |||
31 | public function testHaveMissingArgumentsTypehints() |
||
32 | { |
||
33 | $definition = new Definition(MissingArgumentsTypehints::class); |
||
34 | $definition->setArguments(['@someService']); |
||
35 | |||
36 | $this->assertFalse($this->definitionAnalyzer->shouldDefinitionBeAutowired($definition)); |
||
37 | } |
||
38 | |||
39 | public function testHaveNotMissingArgumentsTypehints() |
||
46 | } |
||
47 |