public function setUp() { $this->useErrorHandler = true; // $this->setExpectedException('Exception'); parent::setUp(); set_exception_handler(array($this, 'excHandler')); }
public function setUp() { if (X2_TEST_DEBUG_LEVEL > 1) { println(' ' . $this->getName()); } if (isset($_SESSION)) { $this->_oldSession = $_SESSION; } parent::setUp(); }
public function setUp() { parent::setUp(); Yii::import('application.helpers.expressions.em_core_helper', 'true'); if (!function_exists('gT')) { // Create gT function that ExpressionManager uses (but ideally should not). eval('function gT() { }'); } $this->em = new ExpressionManager(); }
public function setUp() { if (X2_TEST_DEBUG_LEVEL > 0) { $timer = TestingAuxLib::getCaseTimer(); $timer->start(); } TestingAuxLib::log("running test case: " . $this->getName()); if (isset($_SESSION)) { $this->_oldSession = $_SESSION; } parent::setUp(); }
/** * Sets up the fixture before executing a test method. * If you override this method, make sure the parent implementation is invoked. * Otherwise, the database fixtures will not be managed properly. */ protected function setUp() { parent::setUp(); if (is_array($this->fixtures)) { $this->getFixtureManager()->load($this->fixtures); } }
public function setUp() { // Load our test messages $this->msgs = (require dirname(__FILE__) . '/../fixtures/AfeedbackNotifications.php'); parent::setUp(); }
function setUp() { parent::setUp(); }
/** * Sets up before each test method runs. * This mainly sets the base URL for the test application. */ protected function setUp() { parent::setUp(); }
public function setUp() { parent::setUp(); $this->wkhtmltopdf = Yii::app()->params['wkhtmltopdf_path']; }