Skip to content
Snippets Groups Projects
Commit 3c3e8c6c authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Test for geo.php

parent 8a87585c
No related branches found
No related tags found
No related merge requests found
<?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 UnitTestCase {
function testTimezone() {
$result = OC_Geo::timezone(3,3);
$expected = 'Africa/Porto-Novo';
$this->assertEquals($result, $expected);
$result = OC_Geo::timezone(-3,-3333);
$expected = 'Pacific/Enderbury';
$this->assertEquals($result, $expected);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment