public function testSimpleRedirect()
{
if (phpversion('xdebug') === false) {
$this->markTestSkipped('No xdebug support enabled.');
}
$app = $this->getApp();
$this->expectOutputRegex('/Redirecting to/i');
$redirect = Library::simpleredirect('/test', false);
$this->assertContains('location: /test', xdebug_get_headers());
}