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