public function testItIsSecondHalfOfYearThrowsException() { $this->setExpectedException(Exception::class); $date = new DateTime('05-02-2016'); Assert::isSecondHalfOfYear($date); }