aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/test
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2013-01-31 16:30:37 +0000
committerSam Tuke <samtuke@owncloud.com>2013-01-31 16:30:37 +0000
commit31e723a907399d7d33a0699da082164055f79b3e (patch)
tree7da079cc3db0a46512da1b02cc19307337d9ce54 /apps/files_encryption/test
parentc7b1bdf00e65cca2a42d77fc5f27d0ea69e53be3 (diff)
parent209d599ec5b00c5b92a33e902867fc621e725c93 (diff)
downloadnextcloud-server-31e723a907399d7d33a0699da082164055f79b3e.tar.gz
nextcloud-server-31e723a907399d7d33a0699da082164055f79b3e.zip
Merge github.com:owncloud/core
Conflicts: lib/public/share.php
Diffstat (limited to 'apps/files_encryption/test')
-rwxr-xr-xapps/files_encryption/test/crypt.php20
-rw-r--r--apps/files_encryption/test/proxy.php24
-rw-r--r--apps/files_encryption/test/stream.php22
-rwxr-xr-xapps/files_encryption/test/util.php2
4 files changed, 34 insertions, 34 deletions
diff --git a/apps/files_encryption/test/crypt.php b/apps/files_encryption/test/crypt.php
index 755a6cc72fa..aa87ec32821 100755
--- a/apps/files_encryption/test/crypt.php
+++ b/apps/files_encryption/test/crypt.php
@@ -609,42 +609,42 @@ class Test_Crypt extends \PHPUnit_Framework_TestCase {
// $decrypted=OC_Encryption\Crypt::decrypt($encrypted,$key);
// $decrypted=rtrim($decrypted, "\0");
// $this->assertNotEquals($encrypted,$source);
-// $this->assertEqual($decrypted,$source);
+// $this->assertEquals($decrypted,$source);
//
// $chunk=substr($source,0,8192);
// $encrypted=OC_Encryption\Crypt::encrypt($chunk,$key);
-// $this->assertEqual(strlen($chunk),strlen($encrypted));
+// $this->assertEquals(strlen($chunk),strlen($encrypted));
// $decrypted=OC_Encryption\Crypt::decrypt($encrypted,$key);
// $decrypted=rtrim($decrypted, "\0");
-// $this->assertEqual($decrypted,$chunk);
+// $this->assertEquals($decrypted,$chunk);
//
// $encrypted=OC_Encryption\Crypt::blockEncrypt($source,$key);
// $decrypted=OC_Encryption\Crypt::blockDecrypt($encrypted,$key);
// $this->assertNotEquals($encrypted,$source);
-// $this->assertEqual($decrypted,$source);
+// $this->assertEquals($decrypted,$source);
//
// $tmpFileEncrypted=OCP\Files::tmpFile();
// OC_Encryption\Crypt::encryptfile($file,$tmpFileEncrypted,$key);
// $encrypted=file_get_contents($tmpFileEncrypted);
// $decrypted=OC_Encryption\Crypt::blockDecrypt($encrypted,$key);
// $this->assertNotEquals($encrypted,$source);
-// $this->assertEqual($decrypted,$source);
+// $this->assertEquals($decrypted,$source);
//
// $tmpFileDecrypted=OCP\Files::tmpFile();
// OC_Encryption\Crypt::decryptfile($tmpFileEncrypted,$tmpFileDecrypted,$key);
// $decrypted=file_get_contents($tmpFileDecrypted);
-// $this->assertEqual($decrypted,$source);
+// $this->assertEquals($decrypted,$source);
//
// $file=OC::$SERVERROOT.'/core/img/weather-clear.png';
// $source=file_get_contents($file); //binary file
// $encrypted=OC_Encryption\Crypt::encrypt($source,$key);
// $decrypted=OC_Encryption\Crypt::decrypt($encrypted,$key);
// $decrypted=rtrim($decrypted, "\0");
-// $this->assertEqual($decrypted,$source);
+// $this->assertEquals($decrypted,$source);
//
// $encrypted=OC_Encryption\Crypt::blockEncrypt($source,$key);
// $decrypted=OC_Encryption\Crypt::blockDecrypt($encrypted,$key);
-// $this->assertEqual($decrypted,$source);
+// $this->assertEquals($decrypted,$source);
//
// }
//
@@ -657,11 +657,11 @@ class Test_Crypt extends \PHPUnit_Framework_TestCase {
// $decrypted=OC_Encryption\Crypt::decrypt($encrypted,$key);
//
// $decrypted=rtrim($decrypted, "\0");
-// $this->assertEqual($decrypted,$source);
+// $this->assertEquals($decrypted,$source);
//
// $encrypted=OC_Encryption\Crypt::blockEncrypt($source,$key);
// $decrypted=OC_Encryption\Crypt::blockDecrypt($encrypted,$key,strlen($source));
-// $this->assertEqual($decrypted,$source);
+// $this->assertEquals($decrypted,$source);
// }
}
diff --git a/apps/files_encryption/test/proxy.php b/apps/files_encryption/test/proxy.php
index 51e77100baa..709730f7609 100644
--- a/apps/files_encryption/test/proxy.php
+++ b/apps/files_encryption/test/proxy.php
@@ -109,7 +109,7 @@
//
// }
-// class Test_CryptProxy extends UnitTestCase {
+// class Test_CryptProxy extends PHPUnit_Framework_TestCase {
// private $oldConfig;
// private $oldKey;
//
@@ -161,9 +161,9 @@
// OC_FileProxy::$enabled=true;
//
// $fromFile=OC_Filesystem::file_get_contents('/file');
-// $this->assertNotEqual($original,$stored);
-// $this->assertEqual(strlen($original),strlen($fromFile));
-// $this->assertEqual($original,$fromFile);
+// $this->assertNotEquals($original,$stored);
+// $this->assertEquals(strlen($original),strlen($fromFile));
+// $this->assertEquals($original,$fromFile);
//
// }
//
@@ -181,12 +181,12 @@
// $stored=$rootView->file_get_contents($userDir.'/file');
// OC_FileProxy::$enabled=true;
//
-// $this->assertNotEqual($original,$stored);
+// $this->assertNotEquals($original,$stored);
// $fromFile=$rootView->file_get_contents($userDir.'/file');
-// $this->assertEqual($original,$fromFile);
+// $this->assertEquals($original,$fromFile);
//
// $fromFile=$view->file_get_contents('files/file');
-// $this->assertEqual($original,$fromFile);
+// $this->assertEquals($original,$fromFile);
// }
//
// public function testBinary(){
@@ -200,9 +200,9 @@
// OC_FileProxy::$enabled=true;
//
// $fromFile=OC_Filesystem::file_get_contents('/file');
-// $this->assertNotEqual($original,$stored);
-// $this->assertEqual(strlen($original),strlen($fromFile));
-// $this->assertEqual($original,$fromFile);
+// $this->assertNotEquals($original,$stored);
+// $this->assertEquals(strlen($original),strlen($fromFile));
+// $this->assertEquals($original,$fromFile);
//
// $file=__DIR__.'/zeros';
// $original=file_get_contents($file);
@@ -214,7 +214,7 @@
// OC_FileProxy::$enabled=true;
//
// $fromFile=OC_Filesystem::file_get_contents('/file');
-// $this->assertNotEqual($original,$stored);
-// $this->assertEqual(strlen($original),strlen($fromFile));
+// $this->assertNotEquals($original,$stored);
+// $this->assertEquals(strlen($original),strlen($fromFile));
// }
// }
diff --git a/apps/files_encryption/test/stream.php b/apps/files_encryption/test/stream.php
index 4211cab3104..ba82ac80eab 100644
--- a/apps/files_encryption/test/stream.php
+++ b/apps/files_encryption/test/stream.php
@@ -117,7 +117,7 @@
// //
// // fclose( $stream );
// //
-// // $this->assertEqual( 'foobar', $data );
+// // $this->assertEquals( 'foobar', $data );
// //
// //
// // $file = OC::$SERVERROOT.'/3rdparty/MDB2.php';
@@ -139,15 +139,15 @@
// //
// // $original = file_get_contents( $file );
// //
-// // $this->assertEqual( strlen( $original ), strlen( $data ) );
+// // $this->assertEquals( strlen( $original ), strlen( $data ) );
// //
-// // $this->assertEqual( $original, $data );
+// // $this->assertEquals( $original, $data );
// //
// // }
//
// }
//
-// // class Test_CryptStream extends UnitTestCase {
+// // class Test_CryptStream extends PHPUnit_Framework_TestCase {
// // private $tmpFiles=array();
// //
// // function testStream(){
@@ -158,7 +158,7 @@
// // $stream=$this->getStream('test1','r',strlen('foobar'));
// // $data=fread($stream,6);
// // fclose($stream);
-// // $this->assertEqual('foobar',$data);
+// // $this->assertEquals('foobar',$data);
// //
// // $file=OC::$SERVERROOT.'/3rdparty/MDB2.php';
// // $source=fopen($file,'r');
@@ -170,8 +170,8 @@
// // $stream=$this->getStream('test2','r',filesize($file));
// // $data=stream_get_contents($stream);
// // $original=file_get_contents($file);
-// // $this->assertEqual(strlen($original),strlen($data));
-// // $this->assertEqual($original,$data);
+// // $this->assertEquals(strlen($original),strlen($data));
+// // $this->assertEquals($original,$data);
// // }
// //
// // /**
@@ -207,8 +207,8 @@
// // $stream=$this->getStream('test','r',strlen($source));
// // $data=stream_get_contents($stream);
// // fclose($stream);
-// // $this->assertEqual(strlen($data),strlen($source));
-// // $this->assertEqual($source,$data);
+// // $this->assertEquals(strlen($data),strlen($source));
+// // $this->assertEquals($source,$data);
// //
// // $file=__DIR__.'/zeros';
// // $source=file_get_contents($file);
@@ -220,7 +220,7 @@
// // $stream=$this->getStream('test2','r',strlen($source));
// // $data=stream_get_contents($stream);
// // fclose($stream);
-// // $this->assertEqual(strlen($data),strlen($source));
-// // $this->assertEqual($source,$data);
+// // $this->assertEquals(strlen($data),strlen($source));
+// // $this->assertEquals($source,$data);
// // }
// // }
diff --git a/apps/files_encryption/test/util.php b/apps/files_encryption/test/util.php
index 79f8ede543d..1cdeff8008d 100755
--- a/apps/files_encryption/test/util.php
+++ b/apps/files_encryption/test/util.php
@@ -218,7 +218,7 @@ class Test_Enc_Util extends \PHPUnit_Framework_TestCase {
//
// $decrypted = $c->legacyDecrypt( $encrypted, $c->legacyKey );
//
-// $this->assertEqual( $decrypted, $this->data );
+// $this->assertEquals( $decrypted, $this->data );
//
// }