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']); }
protected function getResult(SourceUnit $unit) { $grapher = new Grapher(); return $grapher->run($unit); }