예제 #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);
 }