Exemplo n.º 1
0
 public static function setUpBeforeClass()
 {
     if (!YII_UNIT_TESTING) {
         throw new CException('YII_UNIT_TESTING must be set to true');
     }
     $testClass = get_called_class();
     if (X2_TEST_DEBUG_LEVEL > 0) {
         println($testClass);
     }
     Yii::app()->beginRequest();
     Yii::app()->fixture->load(array('profile' => 'Profile', 'user' => 'User'));
     parent::setUpBeforeClass();
 }
Exemplo n.º 2
0
 public static function setUpBeforeClass()
 {
     Yii::app()->beginRequest();
     Yii::app()->fixture->load(array('profile' => 'Profile', 'user' => 'User'));
     parent::setUpBeforeClass();
 }
Exemplo n.º 3
0
 public static function setUpBeforeClass()
 {
     if (!YII_UNIT_TESTING) {
         throw new CException('YII_UNIT_TESTING must be set to true');
     }
     $testClass = get_called_class();
     if (X2_TEST_DEBUG_LEVEL > 0) {
         $timer = TestingAuxLib::getClassTimer();
         $timer->start();
     }
     TestingAuxLib::log("running test class: " . self::getPath($testClass));
     Yii::app()->beginRequest();
     Yii::app()->fixture->load(array('profile' => 'Profile', 'user' => 'User'));
     parent::setUpBeforeClass();
 }
Exemplo n.º 4
0
 public static function setUpBeforeClass()
 {
     self::$_appFileUtilState['alwaysCurl'] = AppFileUtil::$alwaysCurl;
     self::$_appFileUtilState['neverCurl'] = AppFileUtil::$neverCurl;
     return parent::setUpBeforeClass();
 }