760366c6943a18298b7e5694c890e4571ead2463
[yaffs-website] / vendor / symfony / http-kernel / Tests / Exception / UnprocessableEntityHttpExceptionTest.php
1 <?php
2
3 namespace Symfony\Component\HttpKernel\Tests\Exception;
4
5 use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException;
6
7 class UnprocessableEntityHttpExceptionTest extends HttpExceptionTest
8 {
9     /**
10      * Test that setting the headers using the setter function
11      * is working as expected.
12      *
13      * @param array $headers The headers to set
14      *
15      * @dataProvider headerDataProvider
16      */
17     public function testHeadersSetter($headers)
18     {
19         $exception = new UnprocessableEntityHttpException(10);
20         $exception->setHeaders($headers);
21         $this->assertSame($headers, $exception->getHeaders());
22     }
23
24     protected function createException()
25     {
26         return new UnprocessableEntityHttpException();
27     }
28 }