CTestCase.php 966 B

1234567891011121314151617181920212223242526272829303132
  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. require_once('PHPUnit/Runner/Version.php');
  11. require_once('PHPUnit/Util/Filesystem.php'); // workaround for PHPUnit <= 3.6.11
  12. spl_autoload_unregister(array('YiiBase','autoload'));
  13. require_once('PHPUnit/Autoload.php');
  14. spl_autoload_register(array('YiiBase','autoload')); // put yii's autoloader at the end
  15. if (in_array('phpunit_autoload', spl_autoload_functions())) { // PHPUnit >= 3.7 'phpunit_autoload' was obsoleted
  16. spl_autoload_unregister('phpunit_autoload');
  17. Yii::registerAutoloader('phpunit_autoload');
  18. }
  19. /**
  20. * CTestCase is the base class for all test case classes.
  21. *
  22. * @author Qiang Xue <qiang.xue@gmail.com>
  23. * @package system.test
  24. * @since 1.1
  25. */
  26. abstract class CTestCase extends PHPUnit_Framework_TestCase
  27. {
  28. }