mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-08-06 16:36:43 +02:00
Use instance methods to set basePath and matchTypes
renamed addMatchType to addMatchTypes
This commit is contained in:
@@ -268,7 +268,7 @@ class AltoRouterTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function testMatchWithCustomNamedRegex()
|
||||
{
|
||||
$this->router->addMatchType(array('cId' => '[a-zA-Z]{2}[0-9](?:_[0-9]++)?'));
|
||||
$this->router->addMatchTypes(array('cId' => '[a-zA-Z]{2}[0-9](?:_[0-9]++)?'));
|
||||
$this->router->map('GET', '/bar/[cId:customId]', 'bar_action', 'bar_route');
|
||||
|
||||
$this->assertEquals(array(
|
||||
|
Reference in New Issue
Block a user