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(); }
public static function setUpBeforeClass() { Yii::app()->beginRequest(); Yii::app()->fixture->load(array('profile' => 'Profile', 'user' => 'User')); parent::setUpBeforeClass(); }
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(); }
public static function setUpBeforeClass() { self::$_appFileUtilState['alwaysCurl'] = AppFileUtil::$alwaysCurl; self::$_appFileUtilState['neverCurl'] = AppFileUtil::$neverCurl; return parent::setUpBeforeClass(); }