/** * Returns if report is a valid module * * @param string $fullClass * @param string $className * @return bool */ protected function isValidReport($classPath) { $tokenized = new Tokenizer($classPath); return $tokenized->isExtended() && ($tokenized->getBaseClass() === 'RAM\\BaseReport' || $tokenized->getBaseClass() === '\\RAM\\BaseReport'); }
public function testNonExistingFile() { $file = __DIR__ . '/' . self::PATH . '/report1/report2.php'; $tokenizer = new Tokenizer($file); $this->assertNull($tokenizer->getTokens()); }