Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
32 | public function testHandlerRunEveryProviders() |
||
33 | { |
||
34 | $this->registry |
||
35 | ->add( |
||
36 | new RegistryEntry( |
||
37 | $this->createProviderExpectingRun('my_index', 'my_type'), |
||
38 | 'my_index', |
||
39 | 'my_type' |
||
40 | ) |
||
41 | ) |
||
42 | ->add( |
||
43 | new RegistryEntry( |
||
44 | $this->createProviderExpectingRun('my_index', 'my_type_2'), |
||
45 | 'my_index', |
||
46 | 'my_type_2' |
||
47 | ) |
||
48 | ) |
||
49 | ; |
||
50 | |||
51 | $handler = new Handler($this->registry); |
||
52 | |||
53 | $handler->handle($this->client, 'my_index', null); |
||
54 | } |
||
55 | |||
68 | } |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.