예제 #1
0
 public function testTemplatesPath()
 {
     $view = new View();
     $this->assertEquals(null, $view->getTemplatesPath());
     $view->setTemplatesPath('a' . DIRECTORY_SEPARATOR . 'b');
     $this->assertEquals('a' . DIRECTORY_SEPARATOR . 'b', $view->getTemplatesPath());
     $view->setTemplatesPath('a' . DIRECTORY_SEPARATOR . 'b' . DIRECTORY_SEPARATOR);
     $this->assertEquals('a' . DIRECTORY_SEPARATOR . 'b', $view->getTemplatesPath());
 }