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