Permalink
Browse files

Add test for Validation::url() + sftp.

  • Loading branch information...
1 parent 1693478 commit 69a69d48a2686337adafa6f2d6b1ad82945be190 @markstory markstory committed Jan 20, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/Test/Case/Utility/ValidationTest.php
View
1 lib/Cake/Test/Case/Utility/ValidationTest.php
@@ -1738,6 +1738,7 @@ public function testUrl() {
$this->assertTrue(Validation::url('ftp://www.cakephp.org/pub/cake'));
$this->assertTrue(Validation::url('ftp://cakephp.org/pub/cake'));
$this->assertTrue(Validation::url('ftp://192.168.0.1/pub/cake'));
+ $this->assertTrue(Validation::url('sftp://192.168.0.1/pub/cake'));
$this->assertFalse(Validation::url('ftps://256.168.0.1/pub/cake'));
$this->assertFalse(Validation::url('ftp://256.168.0.1/pub/cake'));
$this->assertTrue(Validation::url('https://my.domain.com/gizmo/app?class=MySip;proc=start'));

0 comments on commit 69a69d4

Please sign in to comment.