[pLog-svn] r4960 - plog/branches/lifetype-1.2/class/test/tests/data/validator
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Sat Mar 3 18:25:04 EST 2007
Author: jondaley
Date: 2007-03-03 18:25:04 -0500 (Sat, 03 Mar 2007)
New Revision: 4960
Modified:
plog/branches/lifetype-1.2/class/test/tests/data/validator/httpurlvalidator_test.class.php
Log:
add some more tests, and fix up some old tests
Modified: plog/branches/lifetype-1.2/class/test/tests/data/validator/httpurlvalidator_test.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/test/tests/data/validator/httpurlvalidator_test.class.php 2007-03-03 23:14:17 UTC (rev 4959)
+++ plog/branches/lifetype-1.2/class/test/tests/data/validator/httpurlvalidator_test.class.php 2007-03-03 23:25:04 UTC (rev 4960)
@@ -27,7 +27,14 @@
"http://127.22.45.44",
"http://user:password@www.server.com",
"http://user@23.44.22.12:8050/my/very/long/server/folder/.with.several.dots",
- "http://www.fi"
+ "http://www.fi",
+ "https://www.microsoft.com",
+ "ftp://jondaley:password@lala.net/asd/qwe/../",
+ "mailto:jondaley at test.com",
+ "http://surprisingly/%20valid.too",
+ "http://crazy.that.this.is.valid.too/index.php¶m1=value¶m2¶m3",
+ "http://and.me.too/index.php?param1?param2?param3",
+ "http://user@password@server.com",
);
foreach( $urls as $url ) {
@@ -41,9 +48,13 @@
"http://",
"http://www.....com",
"htttp://www.server.com",
- "http://user@password@server.com",
- "http://www.server.com/index.php¶m1=value¶m2¶m3",
- "http://www.server.com/index.php?param1?param2?param3"
+ // we don't check for valid email addresses
+ // "mailto:jonda at ley@test.com",
+ "http:notvalid.com",
+ "http:///////////////canthaveconsecutiveslashesinresource.com",
+ "http:notvalid.com/",
+ "httzp:notvalid.com/",
+ "http:/notvalid.com/",
);
foreach( $urls as $url ) {
More information about the pLog-svn
mailing list