Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function testApply() |
||
23 | { |
||
24 | $this |
||
25 | /* @var \Cubiche\Core\Selector\Key $key */ |
||
26 | ->given($key = $this->newTestedInstance('foo')) |
||
27 | ->then() |
||
28 | ->string($key->apply(array('foo' => 'bar'))) |
||
29 | ->isEqualTo('bar') |
||
30 | ->variable($key->apply(null)) |
||
31 | ->isNull() |
||
32 | ->variable($key->apply(array())) |
||
33 | ->isNull() |
||
34 | ; |
||
35 | } |
||
36 | } |
||
37 |