diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-03-25 23:53:04 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-03-25 23:53:04 +0300 |
commit | 23eb0462e56d72ed24b7b02483069844bd2919b8 (patch) | |
tree | 0d1917534ef451fa259eb89ddabdf9449e83d7c3 /tests | |
parent | 3cf321fdfc4235a87015a9af2f59c63220016c65 (diff) |
Use lowercase true, false and null constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Avatar/UserAvatarTest.php | 2 | ||||
-rw-r--r-- | tests/lib/DB/LegacyDBTest.php | 2 | ||||
-rw-r--r-- | tests/lib/Files/Stream/EncryptionTest.php | 4 | ||||
-rw-r--r-- | tests/lib/Mail/MessageTest.php | 2 | ||||
-rw-r--r-- | tests/lib/TagsTest.php | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/Avatar/UserAvatarTest.php b/tests/lib/Avatar/UserAvatarTest.php index 43e325b0941..ed0a32dab6f 100644 --- a/tests/lib/Avatar/UserAvatarTest.php +++ b/tests/lib/Avatar/UserAvatarTest.php @@ -70,7 +70,7 @@ class UserAvatarTest extends \Test\TestCase { return false; })); - $data = NULL; + $data = null; $file->method('putContent') ->with($this->callback(function ($d) use (&$data) { $data = $d; diff --git a/tests/lib/DB/LegacyDBTest.php b/tests/lib/DB/LegacyDBTest.php index 200afac3f9a..ce7ef0a3a63 100644 --- a/tests/lib/DB/LegacyDBTest.php +++ b/tests/lib/DB/LegacyDBTest.php @@ -16,7 +16,7 @@ use OC_DB; * @group DB */ class LegacyDBTest extends \Test\TestCase { - protected $backupGlobals = FALSE; + protected $backupGlobals = false; protected static $schema_file; protected $test_prefix; diff --git a/tests/lib/Files/Stream/EncryptionTest.php b/tests/lib/Files/Stream/EncryptionTest.php index fd5e8c6ca9d..e2213365d5f 100644 --- a/tests/lib/Files/Stream/EncryptionTest.php +++ b/tests/lib/Files/Stream/EncryptionTest.php @@ -205,9 +205,9 @@ class EncryptionTest extends \Test\TestCase { $fileName = tempnam("/tmp", "FOO"); $stream = $this->getStream($fileName, 'w+', 0); $this->assertEquals(6, fwrite($stream, 'foobar')); - $this->assertEquals(TRUE, rewind($stream)); + $this->assertEquals(true, rewind($stream)); $this->assertEquals('foobar', fread($stream, 100)); - $this->assertEquals(TRUE, rewind($stream)); + $this->assertEquals(true, rewind($stream)); $this->assertEquals(3, fwrite($stream, 'bar')); fclose($stream); diff --git a/tests/lib/Mail/MessageTest.php b/tests/lib/Mail/MessageTest.php index ab62cfcfdcb..4d61504cd97 100644 --- a/tests/lib/Mail/MessageTest.php +++ b/tests/lib/Mail/MessageTest.php @@ -36,7 +36,7 @@ class MessageTest extends TestCase { */ public function getMailAddressProvider() { return array( - array(NULL, array()), + array(null, array()), array(array('lukas@owncloud.com' => 'Lukas Reschke'), array('lukas@owncloud.com' => 'Lukas Reschke')), ); } diff --git a/tests/lib/TagsTest.php b/tests/lib/TagsTest.php index db0a77f68f0..ab717b4cc2f 100644 --- a/tests/lib/TagsTest.php +++ b/tests/lib/TagsTest.php @@ -36,7 +36,7 @@ class TagsTest extends \Test\TestCase { protected $user; /** @var \OCP\IUserSession */ protected $userSession; - protected $backupGlobals = FALSE; + protected $backupGlobals = false; /** @var \OC\Tagging\TagMapper */ protected $tagMapper; /** @var \OCP\ITagManager */ |