Esempio n. 1
0
 /**
  * Test getRoots
  *
  * @return void
  */
 public function testGetRoots()
 {
     $conf = new Viewer\Conf($this->_path);
     $roots = $conf->getRoots();
     //default configured roots does not exists
     $this->array($roots)->isEmpty();
     //set roots to really check
     $conf->setRoots($this->_roots);
     $roots = $conf->getRoots();
     $this->array($roots)->hasSize(1)->strictlyContains(TESTS_DIR . '/data/images/');
 }