Confirms that we can add routes to the dumper.
function testAddRoutes() {
$connection = Database::getConnection();
$dumper = new MatcherDumper($connection);
$route = new Route('test');
$collection = new RouteCollection();
$collection
->add('test_route', $route);
$dumper
->addRoutes($collection);
$dumper_routes = $dumper
->getRoutes()
->all();
$collection_routes = $collection
->all();
foreach ($dumper_routes as $name => $route) {
$this
->assertEqual($route
->getPattern(), $collection_routes[$name]
->getPattern(), 'Routes match');
}
}