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