Eccube\Tests\Application\TwigTraitTest::testRenderForStream PHP Метод

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

public testRenderForStream ( )
    public function testRenderForStream()
    {
        if (php_sapi_name() == 'phpdbg') {
            $this->markTestSkipped('Can not support of ob_*()');
        }
        $app = $this->app;
        $parameters = array('error_title' => 'error', 'error_message' => 'error');
        $response = $app->render('error.twig', $parameters, new StreamedResponse());
        $this->assertEquals('Symfony\\Component\\HttpFoundation\\StreamedResponse', get_class($response));
        ob_start();
        $response->send();
        $this->assertStringStartsWith('<!doctype html>', ob_get_clean());
    }