summaryrefslogtreecommitdiff
path: root/plugins/libcalendaring/tests
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/libcalendaring/tests')
-rw-r--r--plugins/libcalendaring/tests/libcalendaring.php14
-rw-r--r--plugins/libcalendaring/tests/libvcalendar.php6
2 files changed, 10 insertions, 10 deletions
diff --git a/plugins/libcalendaring/tests/libcalendaring.php b/plugins/libcalendaring/tests/libcalendaring.php
index 6b52617..b4373ad 100644
--- a/plugins/libcalendaring/tests/libcalendaring.php
+++ b/plugins/libcalendaring/tests/libcalendaring.php
@@ -29,29 +29,29 @@ class libcalendaring_test extends PHPUnit_Framework_TestCase
}
/**
- * libcalendaring::parse_alaram_value()
+ * libcalendaring::parse_alarm_value()
*/
- function test_parse_alaram_value()
+ function test_parse_alarm_value()
{
- $alarm = libcalendaring::parse_alaram_value('-15M');
+ $alarm = libcalendaring::parse_alarm_value('-15M');
$this->assertEquals('15', $alarm[0]);
$this->assertEquals('-M', $alarm[1]);
$this->assertEquals('-PT15M', $alarm[3]);
- $alarm = libcalendaring::parse_alaram_value('-PT5H');
+ $alarm = libcalendaring::parse_alarm_value('-PT5H');
$this->assertEquals('5', $alarm[0]);
$this->assertEquals('-H', $alarm[1]);
- $alarm = libcalendaring::parse_alaram_value('P0DT1H0M0S');
+ $alarm = libcalendaring::parse_alarm_value('P0DT1H0M0S');
$this->assertEquals('1', $alarm[0]);
$this->assertEquals('+H', $alarm[1]);
// FIXME: this should return something like (1140 + 120 + 30)M
- $alarm = libcalendaring::parse_alaram_value('-P1DT2H30M');
+ $alarm = libcalendaring::parse_alarm_value('-P1DT2H30M');
// $this->assertEquals('1590', $alarm[0]);
// $this->assertEquals('-M', $alarm[1]);
- $alarm = libcalendaring::parse_alaram_value('@1420722000');
+ $alarm = libcalendaring::parse_alarm_value('@1420722000');
$this->assertInstanceOf('DateTime', $alarm[0]);
}
diff --git a/plugins/libcalendaring/tests/libvcalendar.php b/plugins/libcalendaring/tests/libvcalendar.php
index 81b2120..9e2f03b 100644
--- a/plugins/libcalendaring/tests/libvcalendar.php
+++ b/plugins/libcalendaring/tests/libvcalendar.php
@@ -177,7 +177,7 @@ class libvcalendar_test extends PHPUnit_Framework_TestCase
$event = $events[0];
$this->assertEquals('-12H:DISPLAY', $event['alarms'], "Serialized alarms string");
- $alarm = libcalendaring::parse_alaram_value($event['alarms']);
+ $alarm = libcalendaring::parse_alarm_value($event['alarms']);
$this->assertEquals('12', $alarm[0], "Alarm value");
$this->assertEquals('-H', $alarm[1], "Alarm unit");
@@ -189,7 +189,7 @@ class libvcalendar_test extends PHPUnit_Framework_TestCase
$event = $events[0];
$this->assertEquals('-30M:DISPLAY', $event['alarms'], "Stripped alarm string");
- $alarm = libcalendaring::parse_alaram_value($event['alarms']);
+ $alarm = libcalendaring::parse_alarm_value($event['alarms']);
$this->assertEquals('30', $alarm[0], "Alarm value");
$this->assertEquals('-M', $alarm[1], "Alarm unit");
$this->assertEquals('-30M', $alarm[2], "Alarm string");
@@ -242,7 +242,7 @@ class libvcalendar_test extends PHPUnit_Framework_TestCase
// alarms
$this->assertEquals('-45M:AUDIO', $event['alarms'], "Relative alarm string");
- $alarm = libcalendaring::parse_alaram_value($event['alarms']);
+ $alarm = libcalendaring::parse_alarm_value($event['alarms']);
$this->assertEquals('45', $alarm[0], "Alarm value");
$this->assertEquals('-M', $alarm[1], "Alarm unit");