Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / http-kernel / Tests / Exception / UnprocessableEntityHttpExceptionTest.php
diff --git a/vendor/symfony/http-kernel/Tests/Exception/UnprocessableEntityHttpExceptionTest.php b/vendor/symfony/http-kernel/Tests/Exception/UnprocessableEntityHttpExceptionTest.php
new file mode 100644 (file)
index 0000000..760366c
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+
+namespace Symfony\Component\HttpKernel\Tests\Exception;
+
+use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException;
+
+class UnprocessableEntityHttpExceptionTest extends HttpExceptionTest
+{
+    /**
+     * 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());
+    }
+
+    protected function createException()
+    {
+        return new UnprocessableEntityHttpException();
+    }
+}