Author: grobmeier
Date: Sat May 23 22:49:13 2009
New Revision: 778053

URL: http://svn.apache.org/viewvc?rev=778053&view=rev
Log:
checks for header and footer...

Modified:
    incubator/log4php/trunk/src/test/php/layouts/LoggerLayoutHtmlTest.php

Modified: incubator/log4php/trunk/src/test/php/layouts/LoggerLayoutHtmlTest.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/test/php/layouts/LoggerLayoutHtmlTest.php?rev=778053&r1=778052&r2=778053&view=diff
==============================================================================
--- incubator/log4php/trunk/src/test/php/layouts/LoggerLayoutHtmlTest.php 
(original)
+++ incubator/log4php/trunk/src/test/php/layouts/LoggerLayoutHtmlTest.php Sat 
May 23 22:49:13 2009
@@ -77,4 +77,16 @@
         $e = "test";
         self::assertEquals($v, $e);
     }
+    
+     public function testHeader() {
+        $layout = new LoggerLayoutHtml();
+        $v = $layout->getHeader();
+        self::assertTrue(strpos($v, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 
4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\";>") === 0);
+    }
+    
+    public function testFooter() {
+        $layout = new LoggerLayoutHtml();
+        $v = $layout->getFooter();
+        self::assertTrue(strpos($v, "</table>") === 0);
+    }
 }


Reply via email to