Welcome to mirror list, hosted at ThFree Co, Russian Federation.

geo.php « lib « tests - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 82e6160868770c250134f10dbcf78d2da1ce15a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 * Copyright (c) 2012 Lukas Reschke <lukas@statuscode.ch>
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 * See the COPYING-README file.
 */

class Test_Geo extends PHPUnit_Framework_TestCase {
	function testTimezone() {
		$result = OC_Geo::timezone(3, 3);
		$expected = 'Africa/Porto-Novo';
		$this->assertEquals($expected, $result);

		$result = OC_Geo::timezone(-3,-3333);
		$expected = 'Pacific/Enderbury';
		$this->assertEquals($expected, $result);
	}
}