1 | <?php |
||
4 | class ContainerTest extends \PHPUnit_Framework_TestCase |
||
5 | { |
||
6 | /** |
||
7 | * @param mixed $definition |
||
8 | * |
||
9 | * @dataProvider providerDefinitions |
||
10 | */ |
||
11 | public function testAllDefinitions($definition) |
||
17 | |||
18 | /** |
||
19 | * @param mixed $definition |
||
20 | * |
||
21 | * @dataProvider providerDefinitions |
||
22 | */ |
||
23 | public function testInjectable($definition) |
||
31 | |||
32 | /** |
||
33 | * @param mixed $definition |
||
34 | * |
||
35 | * @dataProvider providerDefinitions |
||
36 | */ |
||
37 | public function testServicesShouldBeDifferent($definition) |
||
43 | |||
44 | /** |
||
45 | * @param mixed $definition |
||
46 | * |
||
47 | * @dataProvider providerDefinitions |
||
48 | */ |
||
49 | public function testSharedServices($definition) |
||
55 | |||
56 | /** |
||
57 | * @param mixed $definition |
||
58 | * |
||
59 | * @dataProvider providerDefinitions |
||
60 | */ |
||
61 | public function testIsSharedAndSetShared($definition) |
||
70 | |||
71 | /** |
||
72 | * @expectedException \Lebran\Container\NotFoundException |
||
73 | */ |
||
74 | public function testSetSharedNotFound() |
||
79 | |||
80 | |||
81 | /** |
||
82 | * @param mixed $definition |
||
83 | * |
||
84 | * @dataProvider providerDefinitions |
||
85 | */ |
||
86 | public function testHasAndRemove($definition) |
||
95 | |||
96 | /** |
||
97 | * @param mixed $definition |
||
98 | * |
||
99 | * @dataProvider providerDefinitions |
||
100 | */ |
||
101 | public function testMagicalSyntax($definition) |
||
111 | |||
112 | /** |
||
113 | * @param mixed $definition |
||
114 | * |
||
115 | * @dataProvider providerDefinitions |
||
116 | */ |
||
117 | public function testArrayAccessSyntax($definition) |
||
127 | |||
128 | public function providerDefinitions() |
||
138 | |||
139 | public function testStaticInstance() |
||
146 | |||
147 | /** |
||
148 | * @param mixed $definition |
||
149 | * |
||
150 | * @dataProvider providerDefinitions |
||
151 | */ |
||
152 | public function testNormalize($definition) |
||
158 | |||
159 | public function providerNormalize() |
||
169 | |||
170 | /** |
||
171 | * @expectedException \Lebran\ContainerException |
||
172 | */ |
||
173 | public function testCircle() |
||
179 | |||
180 | /** |
||
181 | * @expectedException \Lebran\ContainerException |
||
182 | */ |
||
183 | public function testCircle2() |
||
191 | |||
192 | |||
193 | public function testStringDefinition() |
||
198 | |||
199 | /** |
||
200 | * @param mixed $definition |
||
201 | * |
||
202 | * @dataProvider providerWrongDefinitions |
||
203 | * @expectedException \Lebran\ContainerException |
||
204 | */ |
||
205 | public function testWrongDefinition($definition) |
||
211 | |||
212 | public function providerWrongDefinitions() |
||
220 | |||
221 | /** |
||
222 | * @expectedException \Lebran\Container\NotFoundException |
||
223 | */ |
||
224 | public function testNotFoundClass() |
||
229 | |||
230 | public function testRegisterServiceProvider() |
||
236 | |||
237 | public function testResolveParameters() |
||
250 | |||
251 | /** |
||
252 | * @expectedException \Lebran\ContainerException |
||
253 | */ |
||
254 | public function testParameterNotPassed() |
||
260 | |||
261 | public function testClosureThisMustBeContainer() |
||
270 | |||
271 | /** |
||
272 | * @param mixed $definition |
||
273 | * |
||
274 | * @dataProvider providerCall |
||
275 | */ |
||
276 | public function testCall($definition) |
||
281 | |||
282 | public function providerCall() |
||
293 | } |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.