public function testRouteData() { $router = new Router(); $router->setCubex($this->newCubexInstace()); $subject = $this->getMock('\\Cubex\\Routing\\IRoutable', ['getRoutes']); $subject->expects($this->any())->method("getRoutes")->will($this->returnValue([':test/:number@num' => 'test'])); $router->setSubject($subject); $route = $router->process('hello/23'); $expect = ["test" => "hello", "number" => 23]; $this->assertEquals($expect, $route->getRouteData()); }