Exemplo n.º 1
0
 public function test_uncleansub_directory_get_classes()
 {
     $classes = $this->finder->directory('/sub/../sub/type')->get_classes();
     sort($classes);
     $this->assertEquals(array('\\vendor2\\foo\\sub\\type\\alternative'), $classes);
 }
Exemplo n.º 2
0
 /**
  * Find the list of routing files
  *
  * @param \phpbb\finder $finder
  * @return null
  */
 public function find_routing_files(\phpbb\finder $finder)
 {
     // We hardcode the path to the core config directory
     // because the finder cannot find it
     $this->routing_files = array_merge($this->routing_files, array('config/routing.yml'), array_keys($finder->directory('/config')->suffix('routing.yml')->find()));
 }