/** * Test a match where we can get the parameters (from the regex) */ public function testValidMatchParamaters() { $config = array('route' => '/foo/bar/:id'); $regex = new Regex($config); $this->assertTrue($regex->evaluate('/foo/bar/baz')); $params = $regex->getParams(); $this->assertEquals($params, array('id' => 'baz')); }