mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-05 15:54:07 +01:00
- removed requirement for PHPUnit from build command #963 - fixed PHPUnit autoloading in CTestCase register phpunit autoloader before Yii autoloader to handle phpunit autoloads correctly. Also require PHPUnit/Util/Filesystem.php to avoid Yii autoloader to crash initializing of PHPUnit autoloader, see also: sebastianbergmann/phpunit#605 https://github.com/sebastianbergmann/phpunit/pull/605 - imported CTestCase in CWebTestCase to ensure PHPUnit autoloader is initialized correctly
27 lines
690 B
PHP
27 lines
690 B
PHP
<?php
|
|
/**
|
|
* This file contains the CTestCase class.
|
|
*
|
|
* @author Qiang Xue <qiang.xue@gmail.com>
|
|
* @link http://www.yiiframework.com/
|
|
* @copyright Copyright © 2008-2011 Yii Software LLC
|
|
* @license http://www.yiiframework.com/license/
|
|
*/
|
|
|
|
require_once('PHPUnit/Util/Filesystem.php'); // workaround for PHPUnit <= 3.6.11
|
|
require_once('PHPUnit/Autoload.php');
|
|
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>
|
|
* @version $Id$
|
|
* @package system.test
|
|
* @since 1.1
|
|
*/
|
|
abstract class CTestCase extends PHPUnit_Framework_TestCase
|
|
{
|
|
}
|