public function getEndLine() { if ($this->endLine === 0) { $this->readSource(); } return $this->endLine; }
/** * testGetEndLineReturnsOneWhenSourceFileExists * * @return void */ public function testGetEndLineReturnsOneWhenSourceFileExists() { $file = new ASTCompilationUnit(__FILE__); $this->assertEquals(362, $file->getEndLine()); }