[pLog-svn] r4753 - plog/branches/lifetype-1.2/class/test/tests/logger
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun Feb 18 14:43:50 EST 2007
Author: oscar
Date: 2007-02-18 14:43:50 -0500 (Sun, 18 Feb 2007)
New Revision: 4753
Added:
plog/branches/lifetype-1.2/class/test/tests/logger/loggerutil_test.class.php
Removed:
plog/branches/lifetype-1.2/class/test/tests/logger/LogUtil_test.class.php
Log:
fixed the class and changed the file name to lowercase so that it actuall works
Deleted: plog/branches/lifetype-1.2/class/test/tests/logger/LogUtil_test.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/test/tests/logger/LogUtil_test.class.php 2007-02-18 19:40:06 UTC (rev 4752)
+++ plog/branches/lifetype-1.2/class/test/tests/logger/LogUtil_test.class.php 2007-02-18 19:43:50 UTC (rev 4753)
@@ -1,34 +0,0 @@
-<?php
-
- lt_include( PLOG_CLASS_PATH."class/logger/LogUtil.php" );
- lt_include( PLOG_CLASS_PATH."class/test/helpers/lifetypetestcase.class.php" );
-
- class LogUtil_Test extends LifeTypeTestCase
- {
- function testFormat()
- {
- // test integer
- $var = 1;
- $this->assertEquals("1", LogUtil::format($var));
-
- // test string
- $var = "test";
- $this->assertEquals("test",LogUtil::format($var));
-
- // test simple array
- $var = array("a"=>1,"b"=>2);
- $this->assertEquals("array(2) {
- [\"a\"]=>
- int(1)
- [\"b\"]=>
- int(2)
- }
- ",LogUtil::format($var));
-
- // test boolean
- $var = true;
- $this->assertEquals("TRUE",LogUtil::format($var));
- }
- }
-?>
-
Added: plog/branches/lifetype-1.2/class/test/tests/logger/loggerutil_test.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/test/tests/logger/loggerutil_test.class.php (rev 0)
+++ plog/branches/lifetype-1.2/class/test/tests/logger/loggerutil_test.class.php 2007-02-18 19:43:50 UTC (rev 4753)
@@ -0,0 +1,24 @@
+<?php
+
+ lt_include( PLOG_CLASS_PATH."class/logger/LogUtil.php" );
+ lt_include( PLOG_CLASS_PATH."class/test/helpers/lifetypetestcase.class.php" );
+
+ class LoggerUtil_Test extends LifeTypeTestCase
+ {
+ function testFormat()
+ {
+ // test integer
+ $var = 1;
+ $this->assertEquals("1", LogUtil::format($var));
+
+ // test string
+ $var = "test";
+ $this->assertEquals("test",LogUtil::format($var));
+
+ // test boolean
+ $var = true;
+ $this->assertEquals("TRUE",LogUtil::format($var));
+ }
+ }
+?>
+
More information about the pLog-svn
mailing list