Example #1
0
 public function testCompile()
 {
     $file = __DIR__ . '/generated/' . __CLASS__ . '.php';
     define('xfile', $file);
     $router = new Dispatcher\Router($file);
     $router->addFile(__FILE__)->setNamespace(__CLASS__);
     $this->assertFalse(file_Exists($file));
     $router->load();
     $this->assertTrue(file_Exists($file));
 }