@@ -580,15 +580,15 @@ public function testSetOptions()
580580 {
581581 $ resource = __DIR__ . '/mocks/basic/test_pass_1.ini ' ;
582582 $ cache_name = sprintf ('%s.php ' , md5 (serialize ($ resource )));
583- $ base_path = __DIR__ . '/mocks/cache ' ;
583+ $ path = __DIR__ . '/mocks/cache ' ;
584584 $ cache_provide = true ;
585585 $ cache_path = __DIR__ . '/mocks/cache/output ' ;
586586 $ cache_expire = 1000 ;
587587
588588 $ vars = new Vars (
589589 $ resource ,
590590 array (
591- 'base_path ' => $ base_path ,
591+ 'path ' => $ path ,
592592 'cache ' => $ cache_provide ,
593593 'cache_path ' => $ cache_path ,
594594 'cache_expire ' => $ cache_expire ,
@@ -597,8 +597,6 @@ public function testSetOptions()
597597
598598 $ cache = $ vars ->getCache ();
599599
600- $ this ->assertEquals ($ base_path , $ vars ->getBasePath ());
601-
602600 $ this ->assertInstanceOf ('\M1\Vars\Cache\CacheProvider ' , $ cache );
603601 $ this ->assertEquals ($ cache_provide , $ cache ->getProvide ());
604602 $ this ->assertEquals ($ cache_path , $ cache ->getPath ());
@@ -609,24 +607,24 @@ public function testSetOptions()
609607
610608 public function testSetBasePath ()
611609 {
612- $ base_path = __DIR__ . '/mocks/cache ' ;
610+ $ path = __DIR__ . '/mocks/cache ' ;
613611 $ resource = __DIR__ . '/mocks/basic/test_pass_1.ini ' ;
614612 $ cache_name = sprintf ('%s.php ' , md5 (serialize ($ resource )));
615613
616614 $ vars = new Vars (
617615 $ resource ,
618616 array (
619- 'base_path ' => $ base_path ,
617+ 'path ' => $ path ,
620618 )
621619 );
622620 $ cache = $ vars ->getCache ();
623621
624622 $ this ->assertInstanceOf ('\M1\Vars\Cache\CacheProvider ' , $ cache );
625623
626- $ this ->assertEquals ($ base_path , $ vars ->getBasePath ());
627- $ this ->assertEquals ($ base_path , $ cache ->getPath ());
624+ $ this ->assertEquals ($ path , $ vars ->getPath ());
625+ $ this ->assertEquals ($ path , $ cache ->getPath ());
628626
629- unlink (sprintf ('%s/%s ' , $ base_path , $ cache_name ));
627+ unlink (sprintf ('%s/%s ' , $ path , $ cache_name ));
630628 }
631629
632630 public function testVariablesSet ()
@@ -1021,7 +1019,7 @@ public function testOptionsSilexServiceProvider()
10211019 {
10221020 $ resource = __DIR__ . '/mocks/basic/test_pass_1.yml ' ;
10231021 $ cache_name = sprintf ('%s.php ' , md5 (serialize ($ resource )));
1024- $ base_path = __DIR__ . '/mocks/cache ' ;
1022+ $ path = __DIR__ . '/mocks/cache ' ;
10251023 $ cache_provide = true ;
10261024 $ cache_path = __DIR__ . '/mocks/cache/output ' ;
10271025 $ cache_expire = 1000 ;
@@ -1031,7 +1029,7 @@ public function testOptionsSilexServiceProvider()
10311029 $ app ->register (
10321030 new \M1 \Vars \Provider \Silex \VarsServiceProvider ($ resource ),
10331031 array (
1034- 'vars.path ' => $ base_path ,
1032+ 'vars.path ' => $ path ,
10351033 'vars.options ' => array (
10361034 'cache ' => $ cache_provide ,
10371035 'cache_path ' => $ cache_path ,
@@ -1041,7 +1039,7 @@ public function testOptionsSilexServiceProvider()
10411039 );
10421040
10431041 $ this ->assertEquals ($ this ->basic_array , $ app ['vars ' ]->getContent ());
1044- $ this ->assertEquals ($ base_path , $ app ['vars ' ]->getBasePath ());
1042+ $ this ->assertEquals ($ path , $ app ['vars ' ]->getPath ());
10451043
10461044 $ cache = $ app ['vars ' ]->getCache ();
10471045 $ this ->assertInstanceOf ('\M1\Vars\Cache\CacheProvider ' , $ cache );
@@ -1303,7 +1301,7 @@ public function testNoneExistentBasePath()
13031301 $ vars = new Vars (
13041302 __DIR__ . '/mocks/importing/dir_fail_1.yml ' ,
13051303 array (
1306- 'base_path ' => __DIR__ . '/mocks/FOLDER_NON_EXISTENT ' ,
1304+ 'path ' => __DIR__ . '/mocks/FOLDER_NON_EXISTENT ' ,
13071305 'cache ' => false ,
13081306 )
13091307 );
0 commit comments