@@ -18,7 +18,7 @@ class CompiledRouteTest extends \PHPUnit_Framework_TestCase
18
18
{
19
19
public function testAccessors ()
20
20
{
21
- $ route = new Route ('/: foo ' , array ('foo ' => 'bar ' ), array ('foo ' => '\d+ ' ), array ('foo ' => 'bar ' ));
21
+ $ route = new Route ('/{ foo} ' , array ('foo ' => 'bar ' ), array ('foo ' => '\d+ ' ), array ('foo ' => 'bar ' ));
22
22
23
23
$ compiled = new CompiledRoute ($ route , 'prefix ' , 'regex ' , array ('tokens ' ), array ('variables ' ));
24
24
$ this ->assertEquals ($ route , $ compiled ->getRoute (), '__construct() takes a route as its first argument ' );
@@ -30,10 +30,10 @@ public function testAccessors()
30
30
31
31
public function testgetPatterngetDefaultsgetOptionsgetRequirements ()
32
32
{
33
- $ route = new Route ('/: foo ' , array ('foo ' => 'bar ' ), array ('foo ' => '\d+ ' ), array ('foo ' => 'bar ' ));
33
+ $ route = new Route ('/{ foo} ' , array ('foo ' => 'bar ' ), array ('foo ' => '\d+ ' ), array ('foo ' => 'bar ' ));
34
34
35
35
$ compiled = new CompiledRoute ($ route , 'prefix ' , 'regex ' , array ('tokens ' ), array ('variables ' ));
36
- $ this ->assertEquals ('/: foo ' , $ compiled ->getPattern (), '->getPattern() returns the route pattern ' );
36
+ $ this ->assertEquals ('/{ foo} ' , $ compiled ->getPattern (), '->getPattern() returns the route pattern ' );
37
37
$ this ->assertEquals (array ('foo ' => 'bar ' ), $ compiled ->getDefaults (), '->getDefaults() returns the route defaults ' );
38
38
$ this ->assertEquals (array ('foo ' => '\d+ ' ), $ compiled ->getRequirements (), '->getRequirements() returns the route requirements ' );
39
39
$ this ->assertEquals (array_merge (array (
0 commit comments