public function testRun() { $scanner = new Scanner(); $result = $scanner->run(BASE_PATH); $this->assertCount(1, $result); $this->assertSame($result[0]['Name'], 'sourcegraph/srclib-php'); }
protected function scan($path = null) { if (!$path) { $path = '.'; } $scanner = new Scanner(); try { return $scanner->run($path); } catch (FileNotFound $e) { return; } }