renaming folder edit_wp5_web_folder to map-service
[geo.git] / map-service / v1.4_dev / test / test_phpunit.php
diff --git a/map-service/v1.4_dev/test/test_phpunit.php b/map-service/v1.4_dev/test/test_phpunit.php
new file mode 100644 (file)
index 0000000..18ffad8
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+       require_once(dirname(__FILE__)."/"."test_rest_gen.php");        
+
+       class TestRestServices extends PHPUnit_Framework_TestCase
+       {
+               public function testEastAfrica_RiftImageExists()
+               {
+                       $this->assertFileEquals(do_testEastAfrica_Rift(), "the retrieved images is different as the expected one");
+               }
+               
+               public function testEastAfrica_RiftImageEquals()
+               {
+                       $this->assertFileEquals(dirname(__FILE__)."/images/"."EasternAfricaRift.png", do_testEastAfrica_Rift(), "the retrieved images is different as the expected one");
+               }
+       }
+
+?>