Ejemplo n.º 1
0
 public function testGetFilters()
 {
     $base = __DIR__ . DIRECTORY_SEPARATOR;
     $view = new View();
     $view->setScriptPath($base . '_templates');
     $view->addFilterPath($base . '_stubs' . DIRECTORY_SEPARATOR . 'FilterDir1');
     $view->addFilter('foo');
     $filters = $view->getFilters();
     $this->assertEquals(1, count($filters));
     $this->assertEquals('foo', $filters[0]);
 }