| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | public function testCountable() |
||
| 28 | { |
||
| 29 | $collection = new RouteCollection(); |
||
| 30 | |||
| 31 | self::assertCount(0, $collection); |
||
| 32 | self::assertSame(0, $collection->count()); |
||
| 33 | |||
| 34 | $route = new Route(); |
||
| 35 | $route->setName('test'); |
||
| 36 | $collection->addRoute($route); |
||
| 37 | |||
| 38 | |||
| 39 | self::assertCount(1, $collection); |
||
| 40 | self::assertSame(1, $collection->count()); |
||
| 41 | } |
||
| 43 |