[Mapbender-commits] r4725 - trunk/mapbender/test/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sat Sep 26 11:53:15 EDT 2009
Author: tbaschetti
Date: 2009-09-26 11:53:14 -0400 (Sat, 26 Sep 2009)
New Revision: 4725
Added:
trunk/mapbender/test/http/classes/MbNoticeTest.php
trunk/mapbender/test/http/classes/MbWarningTest.php
Log:
unit test class_mb_notice, class_mb_warning
Added: trunk/mapbender/test/http/classes/MbNoticeTest.php
===================================================================
--- trunk/mapbender/test/http/classes/MbNoticeTest.php (rev 0)
+++ trunk/mapbender/test/http/classes/MbNoticeTest.php 2009-09-26 15:53:14 UTC (rev 4725)
@@ -0,0 +1,35 @@
+<?php
+require_once 'PHPUnit/Framework.php';
+require_once dirname(__FILE__) . "/../../../http/classes/class_mb_log.php";
+
+class MbNoticeTest extends PHPUnit_Framework_TestCase
+{
+ var $someNotice;
+
+ public function setUp () {
+ $this->someNotice = new mb_notice("unit test");
+ }
+
+ public function tearDown () {
+ unset($this->someNotice);
+ }
+
+
+ /**
+ * Notice was created
+ */
+ public function testNoticeCreated()
+ {
+ //TODO: check if logfile is really created
+ $this->assertNotNull($this->someNotice);
+ }
+
+ /**
+ * Notice was Successful
+ */
+ public function testNoticeSuccessful()
+ {
+ $this->assertEquals("Successful.", $this->someNotice->message);
+ }
+}
+?>
Property changes on: trunk/mapbender/test/http/classes/MbNoticeTest.php
___________________________________________________________________
Added: svn:keywords
+ Id
Added: trunk/mapbender/test/http/classes/MbWarningTest.php
===================================================================
--- trunk/mapbender/test/http/classes/MbWarningTest.php (rev 0)
+++ trunk/mapbender/test/http/classes/MbWarningTest.php 2009-09-26 15:53:14 UTC (rev 4725)
@@ -0,0 +1,35 @@
+<?php
+require_once 'PHPUnit/Framework.php';
+require_once dirname(__FILE__) . "/../../../http/classes/class_mb_log.php";
+
+class MbWarningTest extends PHPUnit_Framework_TestCase
+{
+ var $someNotice;
+
+ public function setUp () {
+ $this->someWarning = new mb_warning("unit test");
+ }
+
+ public function tearDown () {
+ unset($this->someWarning);
+ }
+
+
+ /**
+ * Notice was created
+ */
+ public function testWarningCreated()
+ {
+ //TODO: check if logfile is really created
+ $this->assertNotNull($this->someWarning);
+ }
+
+ /**
+ * Notice was Successful
+ */
+ public function testWarningSuccessful()
+ {
+ $this->assertEquals("Successful.", $this->someWarning->message);
+ }
+}
+?>
Property changes on: trunk/mapbender/test/http/classes/MbWarningTest.php
___________________________________________________________________
Added: svn:keywords
+ Id
More information about the Mapbender_commits
mailing list