Example #1
0
 public function testPublicationDate()
 {
     $resource = new Resource();
     $this->assertNull($resource->getPublicationDate());
     $date = new \DateTime();
     $this->assertInstanceOf('iMoneza\\Data\\Resource', $resource->setPublicationDate($date));
     $this->assertEquals($date, $resource->getPublicationDate());
 }