public function setUp()
 {
     $this->useErrorHandler = true;
     //		$this->setExpectedException('Exception');
     parent::setUp();
     set_exception_handler(array($this, 'excHandler'));
 }
Exemplo n.º 2
0
 public function setUp()
 {
     if (X2_TEST_DEBUG_LEVEL > 1) {
         println(' ' . $this->getName());
     }
     if (isset($_SESSION)) {
         $this->_oldSession = $_SESSION;
     }
     parent::setUp();
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 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();
 }
Exemplo n.º 5
0
 /**
  * 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();
 }
Exemplo n.º 7
0
 function setUp()
 {
     parent::setUp();
 }
Exemplo n.º 8
0
 /**
  * Sets up before each test method runs.
  * This mainly sets the base URL for the test application.
  */
 protected function setUp()
 {
     parent::setUp();
 }
Exemplo n.º 9
0
 public function setUp()
 {
     parent::setUp();
     $this->wkhtmltopdf = Yii::app()->params['wkhtmltopdf_path'];
 }