| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function testTraversal() |
||
| 24 | { |
||
| 25 | $context = new Context(); |
||
| 26 | $this->assertEquals('', $context->getCurrentPath()); |
||
| 27 | |||
| 28 | $context->enterNode('foo'); |
||
| 29 | $context->enterNode('bar'); |
||
| 30 | $context->leaveNode(); |
||
| 31 | $this->assertEquals('/foo', $context->getCurrentPath()); |
||
| 32 | |||
| 33 | $context->enterNode('baz'); |
||
| 34 | $this->assertEquals('/foo/baz', $context->getCurrentPath()); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |