Esempio n. 1
0
 /**
  * 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');
 }
Esempio n. 2
0
 public function testNonExistingFile()
 {
     $file = __DIR__ . '/' . self::PATH . '/report1/report2.php';
     $tokenizer = new Tokenizer($file);
     $this->assertNull($tokenizer->getTokens());
 }