public function testAddErrorsInStringFormat() { $add_errors = ['any_field' => 'any_error']; $expected_errors = ['any_field' => ['any_error']]; $Response = new Response(); $Response->addErrors($add_errors); $this->assertSame($expected_errors, $Response->getErrors()); }