public function setUp()
{
- if (!class_exists('Horde_Notification')) {
- $this->markTestSkipped('Horde_Notification not installed');
- return;
- }
self::$alarm = Horde_Alarm::factory('Object');
$now = time();
$hash = array('id' => 'personalalarm',
public function testNotify()
{
+ if (!class_exists('Horde_Notification')) {
+ $this->markTestSkipped('Horde_Notification not installed');
+ return;
+ }
$alarm = self::$alarm->get('personalalarm', 'john');
$alarm['methods'] = array('notify');
self::$alarm->set($alarm);
public function testMail()
{
+ if (!class_exists('Mail')) {
+ $this->markTestSkipped('Mail not installed');
+ return;
+ }
$alarm = self::$alarm->get('personalalarm', 'john');
$alarm['methods'] = array('mail');
self::$alarm->set($alarm);