public function testProperties() { $id = new StringLiteral('foo'); $time = new \DateTimeImmutable(); $author = new StringLiteral('*****@*****.**'); $url = Url::fromNative('http://www.some.url'); $cdbXml = new StringLiteral(file_get_contents(__DIR__ . '/actor.xml')); $cdbXmlNamespaceUri = new StringLiteral('http://www.cultuurdatabank.com/XMLSchema/CdbXSD/3.2/FINAL'); $event = new ActorCreatedEnrichedWithCdbXml($id, $time, $author, $url, $cdbXml, $cdbXmlNamespaceUri); $this->assertEquals($id, $event->getActorId()); $this->assertEquals($time, $event->getTime()); $this->assertEquals($author, $event->getAuthor()); $this->assertEquals($url, $event->getUrl()); $this->assertEquals($cdbXml, $event->getCdbXml()); $this->assertEquals($cdbXmlNamespaceUri, $event->getCdbXmlNamespaceUri()); }