public function testFromIso8601() { $dr = DateRange::fromIso8601('2009-06-07/2011-05-04'); $this->assertEquals(new DateTime('2009-06-07'), $dr->getStart()); $this->assertEquals(new DateTime('2011-05-04'), $dr->getEnd()); $this->setExpectedException('InvalidArgumentException'); $dr = DateRange::fromIso8601('2009-06-07'); }