/** * @dataProvider dataSetDateTimeZero * @param \DateTime $dateTime * * @expectedException \InvalidArgumentException * @expectedMessage 'The given date time is invalid' */ public function testSetDateTimeZero($dateTime) { $this->notification->setDateTime($dateTime); }