Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2531203
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/tests/phpunit.xml b/tests/phpunit.xml
index 701ccfe..ba94a37 100644
--- a/tests/phpunit.xml
+++ b/tests/phpunit.xml
@@ -1,12 +1,13 @@
<phpunit backupGlobals="false"
bootstrap="bootstrap.php"
colors="true">
<testsuites>
<testsuite name="All Tests">
<file>body_converter.php</file>
<file>data.php</file>
<file>data_tasks.php</file>
<file>message.php</file>
+ <file>timezone_converter.php</file>
</testsuite>
</testsuites>
</phpunit>
diff --git a/tests/timezone_converter.php b/tests/timezone_converter.php
new file mode 100644
index 0000000..ef020ed
--- /dev/null
+++ b/tests/timezone_converter.php
@@ -0,0 +1,28 @@
+<?php
+
+class timezone_converter extends PHPUnit_Framework_TestCase
+{
+ function setUp()
+ {
+ }
+
+
+ function test_list_timezones()
+ {
+ $converter = timezone_converter_test::getInstance();
+
+ $input = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAEAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAFAAEAAAAAAAAAxP///w==';
+ $output = $converter->getListOfTimezones($input, 'UTC');
+
+ $this->assertTrue(is_array($output));
+ }
+}
+
+class timezone_converter_test extends kolab_sync_timezone_converter
+{
+ // disable cache
+ function getCache()
+ {
+ return null;
+ }
+}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Feb 3, 4:06 PM (14 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
427379
Default Alt Text
(1 KB)
Attached To
Mode
R4 syncroton
Attached
Detach File
Event Timeline
Log In to Comment