示例#1
0
 public function testRunInvalid()
 {
     $filename = $this->getFixtureFullPath('000.invalid.php');
     $this->unit->method('getFiles')->willReturn([$filename]);
     $grapher = new Grapher(BASE_PATH);
     $result = $grapher->run($this->unit);
     $this->assertCount(0, $result['Defs']);
     $this->assertCount(0, $result['Docs']);
     $this->assertCount(0, $result['Refs']);
 }
示例#2
0
 protected function getResult(SourceUnit $unit)
 {
     $grapher = new Grapher();
     return $grapher->run($unit);
 }