コード例 #1
0
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('HTML_QuickForm2 package - QuickForm2 - Controller');
     $suite->addTestSuite('HTML_QuickForm2_Controller_PageTest');
     $suite->addTest(QuickForm2_Controller_Action_AllTests::suite());
     return $suite;
 }
コード例 #2
0
}
require_once dirname(__FILE__) . '/BackTest.php';
require_once dirname(__FILE__) . '/DirectTest.php';
require_once dirname(__FILE__) . '/DisplayTest.php';
require_once dirname(__FILE__) . '/JumpTest.php';
require_once dirname(__FILE__) . '/NextTest.php';
require_once dirname(__FILE__) . '/SubmitTest.php';
class QuickForm2_Controller_Action_AllTests
{
    public static function main()
    {
        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 - Controller - Action');
        $suite->addTestSuite('HTML_QuickForm2_Controller_Action_BackTest');
        $suite->addTestSuite('HTML_QuickForm2_Controller_Action_DirectTest');
        $suite->addTestSuite('HTML_QuickForm2_Controller_Action_DisplayTest');
        $suite->addTestSuite('HTML_QuickForm2_Controller_Action_JumpTest');
        $suite->addTestSuite('HTML_QuickForm2_Controller_Action_NextTest');
        $suite->addTestSuite('HTML_QuickForm2_Controller_Action_SubmitTest');
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'QuickForm2_Controller_Action_AllTests::main') {
    QuickForm2_Controller_Action_AllTests::main();
}