コード例 #1
0
ファイル: AllTests.php プロジェクト: bhaumik25/zend-framework
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend');
     /*
      * Perform the tests for Zend_Controller component now.
      */
     $suite->addTest(Zend_Controller_AllTests::suite());
     /*
      * Perform the tests for Zend_Crypt component now.
      *
      * Currenty there's a missing exception class; turning it off
      */
     // $suite->addTest(Zend_Crypt_AllTests::suite());
     /*
      * Perform the tests for Zend_Db component now.
      */
     $suite->addTest(Zend_Db_AllTests::suite());
     /*
      * Perform the tests for Zend_Dojo component now.
      */
     $suite->addTest(Zend_Dojo_AllTests::suite());
     /*
      * Perform the tests for Zend_Dom component now.
      */
     $suite->addTest(Zend_Dom_AllTests::suite());
     /*
      * Perform the tests for Zend_Json component now.
      */
     $suite->addTest(Zend_Json_AllTests::suite());
     /*
      * Perform the tests for Zend_Service component now.
      */
     $suite->addTest(Zend_Service_AllTests::suite());
     /*
      * Perform the tests for Zend_Test component now.
      */
     $suite->addTest(Zend_Test_AllTests::suite());
     /*
      * Perform the tests for Zend_Text component now.
      */
     $suite->addTest(Zend_Text_AllTests::suite());
     return $suite;
 }
コード例 #2
0
ファイル: AllTests.php プロジェクト: netvlies/zf
// require_once 'Zend/Dojo/DataTest.php';
// require_once 'Zend/Dojo/Form/AllTests.php';
// require_once 'Zend/Dojo/View/AllTests.php';
/**
 * @category   Zend
 * @package    Zend_Dojo
 * @subpackage UnitTests
 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 * @group      Zend_Dojo
 */
class Zend_Dojo_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Dojo');
        $suite->addTestSuite('Zend_Dojo_BuildLayerTest');
        $suite->addTestSuite('Zend_Dojo_DojoTest');
        $suite->addTestSuite('Zend_Dojo_DataTest');
        $suite->addTest(Zend_Dojo_Form_AllTests::suite());
        $suite->addTest(Zend_Dojo_View_AllTests::suite());
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'Zend_Dojo_AllTests::main') {
    Zend_Dojo_AllTests::main();
}