Exemplo 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);
 }
Exemplo n.º 2
0
 /**
  *
  * @param string $property
  * @param mixed $value
  */
 public static function mockConf(string $property, $value)
 {
     self::inject(\Ignaszak\Exception\Conf::instance(), $property, $value);
 }
Exemplo n.º 3
0
 public function tearDown()
 {
     MockTest::inject(Conf::instance(), '_conf');
 }
 public function setUp()
 {
     Conf::instance();
     $this->_exceptionHandler = new ExceptionHandler();
 }
Exemplo n.º 5
0
 public function __construct()
 {
     $this->_conf = Conf::instance();
     $this->_errorHandler = new ErrorHandler();
     $this->_exceptionHandler = new ExceptionHandler();
 }