public function getStartLine() { if ($this->startLine === 0) { $this->readSource(); } return $this->startLine; }
/** * testGetStartLineReturnsOneWhenSourceFileExists * * @return void */ public function testGetStartLineReturnsOneWhenSourceFileExists() { $file = new ASTCompilationUnit(__FILE__); $this->assertEquals(1, $file->getStartLine()); }