assertSame(['Allow' => 'GET, PUT'], $exception->getHeaders()); } /** * @dataProvider headerDataProvider */ public function testHeadersSetter($headers) { $exception = new MethodNotAllowedHttpException(['GET']); $exception->setHeaders($headers); $this->assertSame($headers, $exception->getHeaders()); } }