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

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

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