/** * Test that setting the headers using the setter function * is working as expected. * * @param array $headers The headers to set * * @dataProvider headerDataProvider */ public function testHeadersSetter($headers) { $exception = new UnprocessableEntityHttpException(10); $exception->setHeaders($headers); $this->assertSame($headers, $exception->getHeaders()); }