From 3c3e8c6c9898cfdf9861680b7e85534aed9af9e2 Mon Sep 17 00:00:00 2001
From: Lukas Reschke <lukas@statuscode.ch>
Date: Sat, 13 Oct 2012 14:35:18 +0200
Subject: [PATCH] Test for geo.php

---
 tests/lib/geo.php | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 tests/lib/geo.php

diff --git a/tests/lib/geo.php b/tests/lib/geo.php
new file mode 100644
index 0000000000..2b3599ab9b
--- /dev/null
+++ b/tests/lib/geo.php
@@ -0,0 +1,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 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
-- 
GitLab