Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 12 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
22 | public function testPlugin() |
||
23 | { |
||
24 | $query = GeocodeQuery::create('foo'); |
||
25 | $first = function (Query $query) { |
||
26 | $this->fail('Plugin should not restart the chain'); |
||
27 | }; |
||
28 | $next = function (Query $query) { |
||
29 | $this->assertEquals(4711, $query->getLimit()); |
||
30 | }; |
||
31 | |||
32 | $plugin = new LimitPlugin(4711); |
||
33 | $plugin->handleQuery($query, $next, $first); |
||
34 | } |
||
36 |