Example #1
0
 public function testPathParsersAreOverwritten()
 {
     $this->conf->registerPathParser('/^@(\\w+)/', function ($match, $path) {
         return str_replace($match[0], strrev($match[1]), $path);
     });
     $this->conf->registerPathParser('/^@(\\w+)/', function ($match, $path) {
         return str_replace($match[0], strrev($match[1]), $path) . '/more';
     });
     $this->assertEquals('gifnoc/project/more', $this->conf->callGetFileName('@config/project'));
 }