function setUp() { $logger = new \Monolog\Logger("test"); $logger->pushHandler(new SilentLogger()); $parser = new Parser($logger); $this->result = $parser->load($this->getFile()); }
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); }