public function testIsEmpty() { $interval = new DateInterval("P0D"); $this->assertTrue($interval->isEmpty()); $interval = new DateInterval("P1D"); $this->assertFalse($interval->isEmpty()); }
/** * Unserialization interface * @return void */ public function unserialize($data) { parent::__construct($data); }