/** * @expectedException InvalidArgumentException */ public function testInvalidUntil() { $test = new When(); $test->until("test"); }