Esempio n. 1
0
 /**
  * @runInSeparateProcess
  */
 public function testLoadLocation()
 {
     define('TEST_MODE', true);
     $location = 'http://example.com';
     $_conf = Conf::instance();
     $_conf->setProperty('userLocation', $location);
     $_conf->setProperty('display', 'location');
     $this->display->loadLocation();
     $headers_list = xdebug_get_headers();
     $this->assertContains("Location: {$location}", $headers_list);
 }
Esempio n. 2
0
 /**
  *
  * @param string $property
  * @param mixed $value
  */
 public static function mockConf(string $property, $value)
 {
     self::inject(\Ignaszak\Exception\Conf::instance(), $property, $value);
 }
Esempio n. 3
0
 public function tearDown()
 {
     MockTest::inject(Conf::instance(), '_conf');
 }
 public function setUp()
 {
     Conf::instance();
     $this->_exceptionHandler = new ExceptionHandler();
 }
Esempio n. 5
0
 public function __construct()
 {
     $this->_conf = Conf::instance();
     $this->_errorHandler = new ErrorHandler();
     $this->_exceptionHandler = new ExceptionHandler();
 }