Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 34 lines (30 sloc) 1.05 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
<?php
/**
* This file contains the CTestCase class.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright 2008-2013 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/

if(!class_exists('PHPUnit_Runner_Version')) {
    require_once('PHPUnit/Runner/Version.php');
    require_once('PHPUnit/Util/Filesystem.php'); // workaround for PHPUnit <= 3.6.11

    spl_autoload_unregister(array('YiiBase','autoload'));
    require_once('PHPUnit/Autoload.php');
    spl_autoload_register(array('YiiBase','autoload')); // put yii's autoloader at the end

    if (in_array('phpunit_autoload', spl_autoload_functions())) { // PHPUnit >= 3.7 'phpunit_autoload' was obsoleted
        spl_autoload_unregister('phpunit_autoload');
        Yii::registerAutoloader('phpunit_autoload');
    }
}

/**
* CTestCase is the base class for all test case classes.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @package system.test
* @since 1.1
*/
abstract class CTestCase extends PHPUnit_Framework_TestCase
{
}
Something went wrong with that request. Please try again.