3 namespace Symfony\Component\HttpKernel\Tests\Exception;
5 use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException;
7 class UnprocessableEntityHttpExceptionTest extends HttpExceptionTest
10 * Test that setting the headers using the setter function
11 * is working as expected.
13 * @param array $headers The headers to set
15 * @dataProvider headerDataProvider
17 public function testHeadersSetter($headers)
19 $exception = new UnprocessableEntityHttpException(10);
20 $exception->setHeaders($headers);
21 $this->assertSame($headers, $exception->getHeaders());
24 protected function createException()
26 return new UnprocessableEntityHttpException();