Пример #1
0
 /**
  * Verifies behaviour when adding errors to the response.
  *
  * @return void
  */
 public function testAddErrors()
 {
     $actual = new HerculesResponse('/endpoint', 500, [], ['an existing error']);
     $actual->addError(['You done gone and f****d it up now.']);
     $expected = ['an existing error', 'You done gone and f****d it up now.'];
     $this->assertEquals($expected, $actual->getErrors());
 }