예제 #1
0
 /**
  * @covers Intacct\Xml\Response\ErrorMessage::__construct
  * @covers Intacct\Xml\Response\ErrorMessage::getErrors
  * @covers Intacct\Xml\Response\ErrorMessage::cleanse
  */
 public function testGetErrors()
 {
     $errors = $this->object->getErrors();
     $this->assertInternalType('array', $errors);
     $this->assertEquals('1234 description Object definition \'BADOBJECT\' not found. stripthesetags.', $errors[0]);
     $this->assertEquals('5678 stripthesetags. Object definition \'BADOBJECT\' not found. correct.', $errors[1]);
 }