Skip to content

Commit

Permalink
Adding tests for non .com domains. Refs #605
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 23, 2010
1 parent 6033fc7 commit a92b900
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cake/tests/cases/libs/validation.test.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1877,6 +1877,8 @@ function testUrl() {
$this->assertTrue(Validation::url('http://www.cakephp.org', true)); $this->assertTrue(Validation::url('http://www.cakephp.org', true));
$this->assertTrue(Validation::url('http://example.com/~userdir/')); $this->assertTrue(Validation::url('http://example.com/~userdir/'));
$this->assertTrue(Validation::url('http://example.com/~userdir/subdir/index.html')); $this->assertTrue(Validation::url('http://example.com/~userdir/subdir/index.html'));
$this->assertTrue(Validation::url('http://www.zwischenraume.de'));
$this->assertTrue(Validation::url('http://www.zwischenraume.cz'));


$this->assertTrue(Validation::url('http://cakephp.org:80')); $this->assertTrue(Validation::url('http://cakephp.org:80'));
$this->assertTrue(Validation::url('http://cakephp.org:443')); $this->assertTrue(Validation::url('http://cakephp.org:443'));
Expand Down

0 comments on commit a92b900

Please sign in to comment.