/** * @test */ public function it_can_be_serialized_to_xml() { $rsp = new Rsp('0.1', Rsp::LEVEL_INFO, 'ItemCreated', 'http://www.uitdatabank.be/api/v3/event/004aea08-e13d-48c9-b9eb-a18f20e6d44e', null); $this->assertXmlStringEqualsXmlFile(__DIR__ . '/samples/ItemCreated.xml', $rsp->toXml()); }
public function __construct(Rsp $rsp) { $message = 'UDB2 event creation failed, error code: ' . $rsp->getCode(); parent::__construct($rsp, $message); }