1: <?php
2: 3: 4: 5: 6: 7: 8: 9:
10:
11: if(!class_exists('PHPUnit_Runner_Version')) {
12: require_once('PHPUnit/Runner/Version.php');
13: require_once('PHPUnit/Util/Filesystem.php');
14:
15: spl_autoload_unregister(array('YiiBase','autoload'));
16: require_once('PHPUnit/Autoload.php');
17: spl_autoload_register(array('YiiBase','autoload'));
18:
19: if (in_array('phpunit_autoload', spl_autoload_functions())) {
20: spl_autoload_unregister('phpunit_autoload');
21: Yii::registerAutoloader('phpunit_autoload');
22: }
23: }
24:
25: 26: 27: 28: 29: 30: 31:
32: abstract class CTestCase extends PHPUnit_Framework_TestCase
33: {
34: }
35: