diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-12 17:48:01 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-12 17:48:01 +0400 |
commit | 3ad6ea0ee1995362a6bc36b4cf4ae4995b2bb204 (patch) | |
tree | f700a8f787aa9e19019a6c6761da2d50b2283345 | |
parent | 74e73bc8021b71cc3b89ea6ca204e1cab42257c3 (diff) |
Fixing php lint error
-rw-r--r-- | apps/files_external/tests/ftp.php | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/apps/files_external/tests/ftp.php b/apps/files_external/tests/ftp.php index a58f0f40d0b..1a46711a0b8 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('')); + } } } |