Example #1
0
 /**
  * Start test case event observer
  *
  * @param \PHPUnit_Framework_TestCase $test
  */
 public function startTest(\PHPUnit_Framework_TestCase $test)
 {
     $area = $this->_getTestAppArea($test->getAnnotations());
     if ($this->_application->getArea() !== $area) {
         $this->_application->reinitialize();
         if ($this->_application->getArea() !== $area) {
             $this->_application->loadArea($area);
         }
     }
 }