mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-03 06:44:03 +01:00
Fixes composer dependencies: Package phpunit/phpunit-mock-objects is abandoned We cannot support v8 yet because of errors like: Declaration of MailFunc::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp(): void It would require dropping PHP < 7.1 support.
30 lines
613 B
PHP
30 lines
613 B
PHP
<?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'));
|
|
}
|
|
}
|