/** * Test checking date span * */ function test_checkDaysIntervalThreshold() { // Test 30 full days $this->assertTrue($this->_dalZoneStatistics->_checkDaysIntervalThreshold(new Date('2008-05-01'), new Date('2008-05-31'))); // Test almost 30 days $this->assertFalse($this->_dalZoneStatistics->_checkDaysIntervalThreshold(new Date('2008-05-01 00:00:01'), new Date('2008-05-31'))); // Test 29 and 1/2 days and 29 days interval $this->assertTrue($this->_dalZoneStatistics->_checkDaysIntervalThreshold(new Date('2008-05-01 12:00:00'), new Date('2008-05-31'), 29)); }