[pLog-svn] r3929 - plog/trunk/class/test/tests/data/validator/rules

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Sep 3 17:17:11 GMT 2006


Author: oscar
Date: 2006-09-03 17:17:10 +0000 (Sun, 03 Sep 2006)
New Revision: 3929

Modified:
   plog/trunk/class/test/tests/data/validator/rules/stringrangerule_test.class.php
Log:
fixed one of the test cases


Modified: plog/trunk/class/test/tests/data/validator/rules/stringrangerule_test.class.php
===================================================================
--- plog/trunk/class/test/tests/data/validator/rules/stringrangerule_test.class.php	2006-09-03 17:10:23 UTC (rev 3928)
+++ plog/trunk/class/test/tests/data/validator/rules/stringrangerule_test.class.php	2006-09-03 17:17:10 UTC (rev 3929)
@@ -21,7 +21,7 @@
 			// check that the rule returned false
 			$this->assertFalse( $r->validate( "12345678901" ), "StringRangeRule up to 10 characters, 11-character string accepted!" );
 			// and that the error code was correct
-			$this->assertEquals( ERROR_RULE_TOO_LARGE, $r->getError(), "Error code was not ERROR_RULE_TOO_LARGE" );
+			$this->assertEquals( ERROR_RULE_STRING_TOO_LARGE, $r->getError(), "Error code was not ERROR_RULE_STRING_TOO_LARGE" );
 		}
 		
 		/** 
@@ -35,7 +35,7 @@
 			// check that the rule returned false
 			$this->assertFalse( $r->validate( "123" ), "StringRangeRule of at least 5 characters, 3-character string accepted!" );
 			// and that the error code was correct
-			$this->assertEquals( ERROR_RULE_TOO_SMALL, $r->getError(), "Error code was not ERROR_RULE_TOO_SMALL" );
+			$this->assertEquals( ERROR_RULE_STRING_TOO_SMALL, $r->getError(), "Error code was not ERROR_RULE_STRING_TOO_SMALL" );
 		}		
 		
 		/**



More information about the pLog-svn mailing list