@@ -7,7 +7,7 @@ class BasicRouterTest extends PHPUnit_Framework_TestCase {
77 function test_parsePath_full (){
88 $ path = "name/space/class/method.json?query=params " ;
99
10- $ router = new Router \BasicRouter ;
10+ $ router = new Router \BasicRouter ( null , true ) ;
1111
1212 $ result = $ router ->match ($ path );
1313
@@ -26,12 +26,12 @@ function test_parsePath_full(){
2626 function test_parsePath_partial_1 (){
2727 $ path = "name/space/class/method?query=params " ;
2828
29- $ router = new Router \BasicRouter ;
29+ $ router = new Router \BasicRouter ( null , false ) ;
3030
3131 $ result = $ router ->match ($ path );
3232
3333 $ expected = new Router \Route (
34- "Name \\ Space \\ Class " ,
34+ "name \\ space \\ class " ,
3535 "method " ,
3636 "html " ,
3737 ["query " => "params " ]
@@ -50,7 +50,7 @@ function test_parsePath_partial_2(){
5050 $ result = $ router ->match ($ path );
5151
5252 $ expected = new Router \Route (
53- "Name \\ Space \\ Class " ,
53+ "name \\ space \\ class " ,
5454 "index " ,
5555 "html " ,
5656 ["query " => "params " ]
@@ -64,7 +64,7 @@ function test_parsePath_partial_2(){
6464 function test_parsePath_partial_3 (){
6565 $ path = "name/space/class/ " ;
6666
67- $ router = new Router \BasicRouter ;
67+ $ router = new Router \BasicRouter ( null , true ) ;
6868
6969 $ result = $ router ->match ($ path );
7070
@@ -119,7 +119,7 @@ function test_parsePath(){
119119 $ result = $ router ->match ($ path , array_slice ($ _argv , 2 ));
120120
121121 $ expected = new Router \Route (
122- "Name \\ Space \\ Class " ,
122+ "name \\ space \\ class " ,
123123 "method " ,
124124 "html " ,
125125 []
0 commit comments