<?php
/**
* Test: NetteApplicationRoutersRoute with CamelcapsVsDash
*
* @author David Grudl
* @package NetteApplicationRouters
* @subpackage UnitTests
*/
use NetteApplicationRoutersRoute;
require __DIR__ . '/../bootstrap.php';
require __DIR__ . '/Route.inc';
$route =
new Route
('<presenter>',
array(
'presenter' => 'DefaultPresenter',
));
testRouteIn
($route,
'/abc-x-y-z',
'AbcXYZ',
array(
'test' => 'testvalue',
), '/abc-x-y-z?test=testvalue');
testRouteIn
($route,
'/',
'DefaultPresenter',
array(
'test' => 'testvalue',
), '/?test=testvalue');
testRouteIn($route, '/--');