[Pkg-owncloud-commits] [owncloud] 08/11: Fixing php lint error

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:09:31 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.0.12
in repository owncloud.

commit 3ad6ea0ee1995362a6bc36b4cf4ae4995b2bb204
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Tue Feb 12 14:48:01 2013 +0100

    Fixing php lint error
---
 apps/files_external/tests/ftp.php |   36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/apps/files_external/tests/ftp.php b/apps/files_external/tests/ftp.php
index a58f0f4..1a46711 100644
--- a/apps/files_external/tests/ftp.php
+++ b/apps/files_external/tests/ftp.php
@@ -25,24 +25,24 @@ if(!is_array($config) or !isset($config['ftp']) or !$config['ftp']['run']){
 		public function tearDown(){
 			OCP\Files::rmdirr($this->instance->constructUrl(''));
 		}
-	}
-
-	public function testConstructUrl(){
-		$config = array ( 'host' => 'localhost', 'user' => 'ftp', 'password' => 'ftp', 'root' => '/', 'secure' => false );
-		$instance = new OC_Filestorage_FTP($config);
-		$this->assertEqual('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
-
-		$config['secure'] = true;
-		$instance = new OC_Filestorage_FTP($config);
-		$this->assertEqual('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
-
-		$config['secure'] = 'false';
-		$instance = new OC_Filestorage_FTP($config);
-		$this->assertEqual('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
-
-		$config['secure'] = 'true';
-		$instance = new OC_Filestorage_FTP($config);
-		$this->assertEqual('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
+	
+		public function testConstructUrl(){
+			$config = array ( 'host' => 'localhost', 'user' => 'ftp', 'password' => 'ftp', 'root' => '/', 'secure' => false );
+			$instance = new OC_Filestorage_FTP($config);
+			$this->assertEqual('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
+	
+			$config['secure'] = true;
+			$instance = new OC_Filestorage_FTP($config);
+			$this->assertEqual('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
+	
+			$config['secure'] = 'false';
+			$instance = new OC_Filestorage_FTP($config);
+			$this->assertEqual('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
+	
+			$config['secure'] = 'true';
+			$instance = new OC_Filestorage_FTP($config);
+			$this->assertEqual('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
+		}
 	}
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list