Bolt\Tests\Library\BoltLibraryTest::testSimpleRedirect PHP Метод

testSimpleRedirect() публичный Метод

public testSimpleRedirect ( )
    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());
    }