/** * Sets up a new route to ensure that we have a matching route for our * Controller_RequestClientDummy class. */ public static function setUpBeforeClass() { // @codingStandardsIgnoreEnd parent::setUpBeforeClass(); // Set a new Route to the ClientTest controller as the first route // This requires reflection as the API for editing defined routes is limited $route_class = new ReflectionClass('Route'); $routes_prop = $route_class->getProperty('_routes'); $routes_prop->setAccessible(TRUE); self::$_original_routes = $routes_prop->getValue('Route'); $routes = array('ko_request_clienttest' => new Route('<controller>/<action>/<data>', array('data' => '.+'))) + self::$_original_routes; $routes_prop->setValue('Route', $routes); }