| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | function its_extensions_can_be_read() |
||
| 15 | { |
||
| 16 | $this->beConstructedWith(array( |
||
| 17 | 'http://id.tincanapi.com/extension/topic' => 'Conformance Testing', |
||
| 18 | 'http://id.tincanapi.com/extension/color' => array( |
||
| 19 | 'model' => 'RGB', |
||
| 20 | 'value' => '#FFFFFF', |
||
| 21 | ), |
||
| 22 | 'http://id.tincanapi.com/extension/starting-position' => 1, |
||
| 23 | )); |
||
| 24 | |||
| 25 | $this->offsetExists('http://id.tincanapi.com/extension/topic')->shouldReturn(true); |
||
| 26 | $this->offsetGet('http://id.tincanapi.com/extension/topic')->shouldReturn('Conformance Testing'); |
||
| 27 | |||
| 28 | $this->offsetExists('http://id.tincanapi.com/extension/color')->shouldReturn(true); |
||
| 29 | $this->offsetGet('http://id.tincanapi.com/extension/color')->shouldReturn(array( |
||
| 30 | 'model' => 'RGB', |
||
| 31 | 'value' => '#FFFFFF', |
||
| 32 | )); |
||
| 33 | |||
| 34 | $this->offsetExists('http://id.tincanapi.com/extension/starting-position')->shouldReturn(true); |
||
| 35 | $this->offsetGet('http://id.tincanapi.com/extension/starting-position')->shouldReturn(1); |
||
| 36 | } |
||
| 37 | |||
| 49 |