pastebin

Paste Search Dynamic
Recent pastes
Route with ArrayParams
  1. <?php
  2.  
  3. /**
  4.  * Test: NetteApplicationRoutersRoute with ArrayParams
  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(' ? arr=<arr>', array(
  22.         'presenter' => 'Default',
  23.         'arr' => '',
  24. ));
  25.  
  26. testRouteIn($route, '/?arr[1]=1&arr[2]=2', 'Default', array(
  27.         'arr' => array(
  28.                 1 => '1',
  29.                 2 => '2',
  30.         ),
  31.         'test' => 'testvalue',
  32. ), '/?arr%5B1%5D=1&arr%5B2%5D=2&test=testvalue');
Parsed in 0.036 seconds