includes() public method

Is a Horde_Date within this span?
public includes ( Horde_Date $date )
$date Horde_Date
Exemplo n.º 1
0
 public function testIncludes()
 {
     $s = new Horde_Date_Span(new Horde_Date('2006-08-16 00:00:00'), new Horde_Date('2006-08-17 00:00:00'));
     $this->assertTrue($s->includes(new Horde_Date('2006-08-16 12:00:00')));
     $this->assertFalse($s->includes(new Horde_Date('2006-08-15 00:00:00')));
     $this->assertFalse($s->includes(new Horde_Date('2006-08-18 00:00:00')));
 }