diff --git a/tests/ResponseTest.php b/tests/ResponseTest.php
index <HASH>..<HASH> 100644
--- a/tests/ResponseTest.php
+++ b/tests/ResponseTest.php
@@ -194,4 +194,11 @@ class ResponseTest extends \PHPUnit_Framework_TestCase
             ]
         ], $response);
     }
+
+    public function testResponseWithArrayContainsArray()
+    {
+        $response = $this->response ->withArray(['test' => 'array']);
+
+        $this->assertSame('array', $response['test']);
+    }
 }
Added test to cover withArray function (#<I>)