/** * @dataProvider dataSetDateTime * @param \DateTime $dateTime */ public function testSetDateTime(\DateTime $dateTime) { $this->assertSame(0, $this->notification->getDateTime()->getTimestamp()); $this->assertSame($this->notification, $this->notification->setDateTime($dateTime)); $this->assertSame($dateTime, $this->notification->getDateTime()); }