diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Framework/Config.php | 29 | ||||
-rw-r--r-- | tests/phpunit.xml | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/Framework/Config.php b/tests/Framework/Config.php new file mode 100644 index 000000000..6569fd5cf --- /dev/null +++ b/tests/Framework/Config.php @@ -0,0 +1,29 @@ +<?php + +/** + * Test class to test rcube_config class + * + * @package Tests + */ +class Framework_Config extends PHPUnit_Framework_TestCase +{ + + /** + * Class constructor + */ + function test_class() + { + $object = new rcube_config(); + + $this->assertInstanceOf('rcube_config', $object, "Class constructor"); + } + + /** + * Test resolve_timezone_alias() + */ + function test_resolve_timezone_alias() + { + $this->assertSame('UTC', rcube_config::resolve_timezone_alias('Etc/GMT')); + $this->assertSame('UTC', rcube_config::resolve_timezone_alias('Etc/Zulu')); + } +} diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 3f8e81390..76ef1b9a1 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -9,6 +9,7 @@ <file>Framework/Cache.php</file> <file>Framework/CacheShared.php</file> <file>Framework/Charset.php</file> + <file>Framework/Config.php</file> <file>Framework/Contacts.php</file> <file>Framework/ContentFilter.php</file> <file>Framework/Csv2vcard.php</file> |