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