Change array defaults in FeatureResponseTest:getFeatureResponse

This commit is contained in:
Master Yoda 2018-07-06 10:29:30 -07:00
parent 828d9ac7ba
commit dd40aba3f3
No known key found for this signature in database
GPG Key ID: CED549230775AD5B

View File

@ -142,7 +142,7 @@ class FeatureResponseTest extends CIUnitTestCase
public function testAssertHeader()
{
$this->getFeatureResponse('<h1>Hello World</h1>', null, ['foo' => 'bar']);
$this->getFeatureResponse('<h1>Hello World</h1>', [], ['foo' => 'bar']);
$this->feature->assertHeader('foo');
$this->feature->assertHeader('foo', 'bar');
@ -237,7 +237,7 @@ class FeatureResponseTest extends CIUnitTestCase
}
protected function getFeatureResponse($body=null, array $responseOptions = null, array $headers = null)
protected function getFeatureResponse($body=null, array $responseOptions = [], array $headers = [])
{
$this->response = new Response(new \Config\App());
$this->response->setBody($body);