Example #1
0
 /**
  * Initialization method installs PHPUnit and loads all plugins
  *
  * @return void
  * @throws Exception
  */
 public function initialize()
 {
     $this->_dispatcher = new CakeTestSuiteDispatcher();
     $success = $this->_dispatcher->loadTestFramework();
     if (!$success) {
         throw new Exception(__d('cake_dev', 'Please install PHPUnit framework v3.7 <info>(http://www.phpunit.de)</info>'));
     }
 }
Example #2
0
 /**
  * Initialization method installs Simpletest and loads all plugins
  *
  * @return void
  */
 public function initialize()
 {
     require_once CAKE . 'tests' . DS . 'lib' . DS . 'cake_test_suite_dispatcher.php';
     $corePath = App::core('cake');
     if (isset($corePath[0])) {
         define('TEST_CAKE_CORE_INCLUDE_PATH', rtrim($corePath[0], DS) . DS);
     } else {
         define('TEST_CAKE_CORE_INCLUDE_PATH', CAKE_CORE_INCLUDE_PATH);
     }
     $this->_dispatcher = new CakeTestSuiteDispatcher();
     $this->_dispatcher->loadTestFramework();
     require_once CAKE . 'tests' . DS . 'lib' . DS . 'cake_test_suite_command.php';
 }