/** * A method to test the deliveryBlocked() method. * * Tests that the method in the class returns a PEAR::Error, as method is abstract. */ function testDeliveryBlocked() { $oCommon = new OA_Maintenance_Priority_DeliveryLimitation_Common(array()); PEAR::pushErrorHandling(null); $this->assertTrue($oCommon->deliveryBlocked(new Date()) instanceof PEAR_Error); PEAR::popErrorHandling(); }
/** * A method to test the deliveryBlocked() method. * * Tests that the method in the class returns a PEAR::Error, as method is abstract. */ function testDeliveryBlocked() { $oDate = new Date(); PEAR::pushErrorHandling(null); $this->assertTrue(is_a(OA_Maintenance_Priority_DeliveryLimitation_Common::deliveryBlocked($oDate), 'pear_error')); PEAR::popErrorHandling(); }