pastebin

Paste Search Dynamic
Recent pastes
Route with CamelcapsVsDash
  1. <?php
  2.  
  3. /**
  4.  * Test: NetteApplicationRoutersRoute with CamelcapsVsDash
  5.  *
  6.  * @author     David Grudl
  7.  * @package    NetteApplicationRouters
  8.  * @subpackage UnitTests
  9.  */
  10.  
  11. use NetteApplicationRoutersRoute;
  12.  
  13.  
  14.  
  15. require __DIR__ . '/../bootstrap.php';
  16.  
  17. require __DIR__ . '/Route.inc';
  18.  
  19.  
  20.  
  21. $route = new Route('<presenter>', array(
  22.         'presenter' => 'DefaultPresenter',
  23. ));
  24.  
  25. testRouteIn($route, '/abc-x-y-z', 'AbcXYZ', array(
  26.         'test' => 'testvalue',
  27. ), '/abc-x-y-z?test=testvalue');
  28.  
  29. testRouteIn($route, '/', 'DefaultPresenter', array(
  30.         'test' => 'testvalue',
  31. ), '/?test=testvalue');
  32.  
  33. testRouteIn($route, '/--');
Parsed in 0.050 seconds