コード例 #1
0
 /**
  *
  * @return void
  */
 protected function debugInfo()
 {
     if (count($this->classObject->getMethods()) != count($this->classReflection->getNotInheritedMethods())) {
         debug('Errorr: method count does not match: ' . count($this->classObject->getMethods()) . ' methods found, should be ' . count($this->classReflection->getNotInheritedMethods()));
         debug($this->classObject->getMethods());
         debug($this->classReflection->getNotInheritedMethods());
     }
     if (count($this->classObject->getProperties()) != count($this->classReflection->getNotInheritedProperties())) {
         debug('Error: property count does not match:' . count($this->classObject->getProperties()) . ' properties found, should be ' . count($this->classReflection->getNotInheritedProperties()));
         debug($this->classObject->getProperties());
         debug($this->classReflection->getNotInheritedProperties());
     }
     $info = $this->classObject->getInfo();
     $endtime = microtime(TRUE);
     $totaltime = $endtime - $this->starttime;
     $totaltime = round($totaltime, 5);
     $info['Parsetime:'] = $totaltime . ' s';
     debug($info);
 }
コード例 #2
0
 /**
  * compares the number of methods found by parsing with those retrieved from the reflection class
  * @param Tx_ExtensionBuilder_Domain_Model_Class $classObject
  * @param Tx_ExtensionBuilder_Reflection_ClassReflection $classReflection
  * @return void
  */
 public function ParserFindsAllMethods($classObject, $classReflection)
 {
     $reflectionMethodCount = count($classReflection->getNotInheritedMethods());
     $classObjectMethodCount = count($classObject->getMethods());
     $this->assertEquals($classObjectMethodCount, $reflectionMethodCount, 'Not all Methods were found!');
 }