Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • CDbFixtureManager
  • CDbTestCase
  • CTestCase
  • CWebTestCase
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * This file contains the CTestCase class.
 4:  *
 5:  * @author Qiang Xue <qiang.xue@gmail.com>
 6:  * @link http://www.yiiframework.com/
 7:  * @copyright 2008-2013 Yii Software LLC
 8:  * @license http://www.yiiframework.com/license/
 9:  */
10: 
11: if(!class_exists('PHPUnit_Runner_Version')) {
12:     require_once('PHPUnit/Runner/Version.php');
13:     require_once('PHPUnit/Util/Filesystem.php'); // workaround for PHPUnit <= 3.6.11
14: 
15:     spl_autoload_unregister(array('YiiBase','autoload'));
16:     require_once('PHPUnit/Autoload.php');
17:     spl_autoload_register(array('YiiBase','autoload')); // put yii's autoloader at the end
18: 
19:     if (in_array('phpunit_autoload', spl_autoload_functions())) { // PHPUnit >= 3.7 'phpunit_autoload' was obsoleted
20:         spl_autoload_unregister('phpunit_autoload');
21:         Yii::registerAutoloader('phpunit_autoload');
22:     }
23: }
24: 
25: /**
26:  * CTestCase is the base class for all test case classes.
27:  *
28:  * @author Qiang Xue <qiang.xue@gmail.com>
29:  * @package system.test
30:  * @since 1.1
31:  */
32: abstract class CTestCase extends PHPUnit_Framework_TestCase
33: {
34: }
35: 
API documentation generated by ApiGen 2.8.0