Esempio n. 1
0
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('HTML_QuickForm2 package');
     $suite->addTest(QuickForm2_AllTests::suite());
     $suite->addTestSuite('HTML_QuickForm2Test');
     return $suite;
 }
    {
        if (!class_exists('PHPUnit_TextUI_TestRunner', true)) {
            require_once 'PHPUnit/TextUI/TestRunner.php';
        }
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('HTML_QuickForm2 package - QuickForm2');
        $suite->addTestSuite('HTML_QuickForm2_FactoryTest');
        $suite->addTestSuite('HTML_QuickForm2_NodeTest');
        $suite->addTestSuite('HTML_QuickForm2_ElementTest');
        $suite->addTestSuite('HTML_QuickForm2_ContainerTest');
        $suite->addTestSuite('HTML_QuickForm2_ContainerOverloadTest');
        $suite->addTestSuite('HTML_QuickForm2_RuleTest');
        $suite->addTestSuite('HTML_QuickForm2_FilterTest');
        $suite->addTestSuite('HTML_QuickForm2_RendererTest');
        $suite->addTestSuite('HTML_QuickForm2_ControllerTest');
        $suite->addTestSuite('HTML_QuickForm2_JavascriptBuilderTest');
        $suite->addTest(QuickForm2_Element_AllTests::suite());
        $suite->addTest(QuickForm2_Container_AllTests::suite());
        $suite->addTest(QuickForm2_DataSource_AllTests::suite());
        $suite->addTest(QuickForm2_Rule_AllTests::suite());
        $suite->addTest(QuickForm2_Renderer_AllTests::suite());
        $suite->addTest(QuickForm2_Controller_AllTests::suite());
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'QuickForm2_AllTests::main') {
    QuickForm2_AllTests::main();
}