Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 33 lines (28 sloc) 0.984 kb
61d96d5
qiang.xue authored
1 <?php
ed259c3 Finished all test framework classes.
qiang.xue authored
2 /**
3 * This file contains the CTestCase class.
4 *
5 * @author Qiang Xue <qiang.xue@gmail.com>
6 * @link http://www.yiiframework.com/
4be0af6 changed copyright year.
qiang.xue authored
7 * @copyright Copyright &copy; 2008-2011 Yii Software LLC
ed259c3 Finished all test framework classes.
qiang.xue authored
8 * @license http://www.yiiframework.com/license/
9 */
61d96d5
qiang.xue authored
10
5357ebe @samdark Fixes #1563: Updated CTestCase for PHPUnit 3.7.7+
samdark authored
11 require_once('PHPUnit/Runner/Version.php');
5cb7b35 @cebe fixed PHPUnit autoloading
cebe authored
12 require_once('PHPUnit/Util/Filesystem.php'); // workaround for PHPUnit <= 3.6.11
d505aad @qiangxue Fixed CTestCase for PHPUnit 3.7.10.
qiangxue authored
13
14 spl_autoload_unregister(array('YiiBase','autoload'));
9e328de (Fixes issue 2138) Updated required PHPUnit version
alexander.makarow authored
15 require_once('PHPUnit/Autoload.php');
d505aad @qiangxue Fixed CTestCase for PHPUnit 3.7.10.
qiangxue authored
16 spl_autoload_register(array('YiiBase','autoload')); // put yii's autoloader at the end
17
5357ebe @samdark Fixes #1563: Updated CTestCase for PHPUnit 3.7.7+
samdark authored
18 if (in_array('phpunit_autoload', spl_autoload_functions())) { // PHPUnit >= 3.7 'phpunit_alutoload' was obsoleted
19 spl_autoload_unregister('phpunit_autoload');
20 Yii::registerAutoloader('phpunit_autoload');
21 }
ff3445c Added CWebTestCase.php.
qiang.xue authored
22
ed259c3 Finished all test framework classes.
qiang.xue authored
23 /**
24 * CTestCase is the base class for all test case classes.
25 *
26 * @author Qiang Xue <qiang.xue@gmail.com>
27 * @package system.test
28 * @since 1.1
29 */
1fb0b80 test documentation.
qiang.xue authored
30 abstract class CTestCase extends PHPUnit_Framework_TestCase
61d96d5
qiang.xue authored
31 {
ed259c3 Finished all test framework classes.
qiang.xue authored
32 }
Something went wrong with that request. Please try again.