Bolt\Tests\Response\TemplateResponseTest::testGlobalContext PHP 메소드

testGlobalContext() 공개 메소드

public testGlobalContext ( )
    public function testGlobalContext()
    {
        $response = $this->createTestResponse('error.twig', [], $this->getContext());
        $globalContext = $response->getGlobals();
        $this->assertEquals('1555', $globalContext['context']['code']);
    }