示例#1
0
 function setUp()
 {
     $logger = new \Monolog\Logger("test");
     $logger->pushHandler(new SilentLogger());
     $parser = new Parser($logger);
     $this->result = $parser->load($this->getFile());
 }
示例#2
0
 public function parse($dirs)
 {
     $files = array();
     foreach ($dirs as $dir) {
         $files = array_merge($files, $this->iterate($dir));
     }
     $this->logger->info("Parsing " . number_format(count($files)) . " PHP files...");
     $parser = new Parser($this->logger);
     return $parser->load($files);
 }