예제 #1
0
파일: FOFTestCase.php 프로젝트: Joal01/fof
 /**
  * Overrides the parent setup method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::setUp()
  */
 protected function setUp()
 {
     $this->setExpectedError();
     parent::setUp();
     // Since we're creating the platform only when we instantiate the test class, any modification
     // will be carried over in the other tests, so we have to manually reset the platform before
     // running any other test
     $platform = static::$container->platform;
     if (method_exists($platform, 'reset')) {
         $platform->reset();
     }
 }
예제 #2
0
 protected function setUp()
 {
     parent::setUp();
     $_SERVER['HTTP_HOST'] = 'www.example.com';
 }