1 | <?php |
||
24 | class ApplicationTest extends \PHPUnit_Framework_TestCase |
||
25 | { |
||
26 | /** |
||
27 | * @var ContainerBuilder |
||
28 | */ |
||
29 | protected $builder; |
||
30 | |||
31 | /** |
||
32 | * @var ContainerConfig |
||
33 | */ |
||
34 | protected $config; |
||
35 | |||
36 | protected function setUp() |
||
49 | |||
50 | /** |
||
51 | * @test |
||
52 | * |
||
53 | * @covers LuisMulinari\Consoleful\Application::__construct |
||
54 | * @covers Symfony\Component\Console\Application::__construct |
||
55 | */ |
||
56 | public function constructShouldConfigureTheAttributes() |
||
65 | |||
66 | /** |
||
67 | * @test |
||
68 | * |
||
69 | * @covers LuisMulinari\Consoleful\Application::__construct |
||
70 | * @covers Symfony\Component\Console\Application::__construct |
||
71 | */ |
||
72 | public function constructShouldCreateBuilderWhenNotInformed() |
||
78 | |||
79 | /** |
||
80 | * @test |
||
81 | * |
||
82 | * @covers LuisMulinari\Consoleful\Application::__construct |
||
83 | * @covers LuisMulinari\Consoleful\Application::doRun |
||
84 | * @covers LuisMulinari\Consoleful\Application::injectContainer |
||
85 | * @covers Symfony\Component\Console\Application::__construct |
||
86 | * @covers Symfony\Component\Console\Application::doRun |
||
87 | * @covers Lcobucci\DependencyInjection\ContainerInjector::setContainer |
||
88 | * @covers Lcobucci\DependencyInjection\ContainerInjector::getContainer |
||
89 | */ |
||
90 | public function doRunShouldNotBuildTheContainerWhenNoConfigurationWasUsed() |
||
103 | |||
104 | /** |
||
105 | * @test |
||
106 | * |
||
107 | * @covers LuisMulinari\Consoleful\Application::__construct |
||
108 | * @covers LuisMulinari\Consoleful\Application::doRun |
||
109 | * @covers LuisMulinari\Consoleful\Application::injectContainer |
||
110 | * @covers Symfony\Component\Console\Application::__construct |
||
111 | * @covers Symfony\Component\Console\Application::doRun |
||
112 | * @covers Lcobucci\DependencyInjection\ContainerInjector::setContainer |
||
113 | * @covers Lcobucci\DependencyInjection\ContainerInjector::getContainer |
||
114 | */ |
||
115 | public function doRunShouldBuildTheContainerIfItWasnConfiguredYet() |
||
131 | |||
132 | /** |
||
133 | * @test |
||
134 | * |
||
135 | * @covers LuisMulinari\Consoleful\Application::__construct |
||
136 | * @covers LuisMulinari\Consoleful\Application::doRun |
||
137 | * @covers LuisMulinari\Consoleful\Application::injectContainer |
||
138 | * @covers Symfony\Component\Console\Application::__construct |
||
139 | * @covers Symfony\Component\Console\Application::add |
||
140 | * @covers Symfony\Component\Console\Application::doRun |
||
141 | * @covers Lcobucci\DependencyInjection\ContainerInjector::setContainer |
||
142 | * @covers Lcobucci\DependencyInjection\ContainerInjector::getContainer |
||
143 | */ |
||
144 | public function doRunShouldInjectTheContainerOnContainerAwareCommands() |
||
164 | } |
||
165 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..