Beispiel #1
0
 public function __construct()
 {
     parent::__construct();
     $this->setName('Reflection');
     $this->addTest(ezcReflectionAnnotationFactoryTest::suite());
     $this->addTest(ezcReflectionDocCommentParserTest::suite());
     $this->addTest(ezcReflectionTypeMapperTest::suite());
     $this->addTest(ezcReflectionAbstractTypeTest::suite());
     $this->addTest(ezcReflectionPrimitiveTypeTest::suite());
     $this->addTest(ezcReflectionArrayTypeTest::suite());
     $this->addTest(ezcReflectionObjectTypeTest::suite());
     $this->addTest(ezcReflectionMixedTypeTest::suite());
     $this->addTest(ezcReflectionTypeFactoryTest::suite());
     $this->addTest(ezcReflectionClassTest::suite());
     $this->addTest(ezcReflectionClassExternalTest::suite());
     $this->addTest(ezcReflectionClassInstanceTest::suite());
     $this->addTest(ezcReflectionObjectTest::suite());
     $this->addTest(ezcReflectionFunctionTest::suite());
     $this->addTest(ezcReflectionFunctionExternalTest::suite());
     $this->addTest(ezcReflectionMethodTest::suite());
     $this->addTest(ezcReflectionMethodExternalTest::suite());
     $this->addTest(ezcReflectionMethodFromClassTest::suite());
     $this->addTest(ezcReflectionMethodsFromClassTest::suite());
     $this->addTest(ezcReflectionParameterTest::suite());
     $this->addTest(ezcReflectionParameterByNameTest::suite());
     $this->addTest(ezcReflectionParametersFromFunctionTest::suite());
     $this->addTest(ezcReflectionParameterExternalTest::suite());
     $this->addTest(ezcReflectionPropertyTest::suite());
     $this->addTest(ezcReflectionPropertyFromClassTest::suite());
     $this->addTest(ezcReflectionPropertiesFromClassTest::suite());
     if (file_exists(dirname(__FILE__) . '/staticReflection/source/pdepend/reflection/Autoloader.php')) {
         $this->addTest(ezcReflectionClassStaticTest::suite());
         $this->addTest(ezcReflectionMethodStaticTest::suite());
         $this->addTest(ezcReflectionParameterStaticTest::suite());
     }
     $this->addTest(ezcReflectionExtensionTest::suite());
     $this->addTest(ezcReflectionExtensionExternalTest::suite());
     $this->addTest(ezcReflectionTest::suite());
 }
Beispiel #2
0
 public static function suite()
 {
     self::$docs = array();
     $class = new ReflectionClass('ezcReflectionDocCommentParserTest');
     self::$docs[] = $class->getDocComment();
     $class = new ReflectionClass('TestMethods');
     self::$docs[] = $class->getDocComment();
     $methods = $class->getMethods();
     foreach ($methods as $method) {
         self::$docs[] = $method->getDocComment();
     }
     return new PHPUnit_Framework_TestSuite("ezcReflectionDocCommentParserTest");
 }