public function testItShouldCheckIfIsPastThrowsException() { $this->setExpectedException(Exception::class); Assert::isPastDate(new DateTime('now')); }