From 9d9698fd0d79a44e9e807a48eb14f9e358669f84 Mon Sep 17 00:00:00 2001 From: Roland Waldner <most.wanted@gmx.at> Date: Sun, 20 May 2012 13:02:01 +0200 Subject: [PATCH] [BUGFIX] CGL violations FunctionCallArgumentSpacing in /tests/ Fix some CGL violations in /tests/ against rule "FunctionCallArgumentSpacingNoSpaceAfterComma". Change-Id: I5a35bf48de79d9f1a7945b2191b5be9bd94146c8 Resolves: #37319 Releases: 6.0 Reviewed-on: http://review.typo3.org/11317 Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn --- .../backend/class.t3lib_cache_backend_apcbackendTest.php | 4 ++-- .../class.t3lib_cache_backend_memcachedbackendTest.php | 4 ++-- tests/Unit/t3lib/class.t3lib_divTest.php | 6 +++--- ...class.t3lib_formprotection_BackendFormProtectionTest.php | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Unit/t3lib/cache/backend/class.t3lib_cache_backend_apcbackendTest.php b/tests/Unit/t3lib/cache/backend/class.t3lib_cache_backend_apcbackendTest.php index 0d509f870c34..59a5dd1e098a 100644 --- a/tests/Unit/t3lib/cache/backend/class.t3lib_cache_backend_apcbackendTest.php +++ b/tests/Unit/t3lib/cache/backend/class.t3lib_cache_backend_apcbackendTest.php @@ -160,7 +160,7 @@ class t3lib_cache_backend_ApcBackendTest extends tx_phpunit_testcase { $backend = $this->setUpBackend(); $identifier = 'NonExistingIdentifier' . md5(uniqid(mt_rand(), TRUE)); $inCache = $backend->has($identifier); - $this->assertFalse($inCache,'"has" did not return FALSE when checking on non existing identifier'); + $this->assertFalse($inCache, '"has" did not return FALSE when checking on non existing identifier'); } /** @@ -171,7 +171,7 @@ class t3lib_cache_backend_ApcBackendTest extends tx_phpunit_testcase { $backend = $this->setUpBackend(); $identifier = 'NonExistingIdentifier' . md5(uniqid(mt_rand(), TRUE)); $inCache = $backend->remove($identifier); - $this->assertFalse($inCache,'"remove" did not return FALSE when checking on non existing identifier'); + $this->assertFalse($inCache, '"remove" did not return FALSE when checking on non existing identifier'); } /** diff --git a/tests/Unit/t3lib/cache/backend/class.t3lib_cache_backend_memcachedbackendTest.php b/tests/Unit/t3lib/cache/backend/class.t3lib_cache_backend_memcachedbackendTest.php index 7db5a5235858..dc6c8911c807 100644 --- a/tests/Unit/t3lib/cache/backend/class.t3lib_cache_backend_memcachedbackendTest.php +++ b/tests/Unit/t3lib/cache/backend/class.t3lib_cache_backend_memcachedbackendTest.php @@ -177,7 +177,7 @@ class t3lib_cache_backend_MemcachedBackendTest extends tx_phpunit_testcase { $backend = $this->setUpBackend(); $identifier = 'NonExistingIdentifier' . md5(uniqid(mt_rand(), TRUE)); $inCache = $backend->has($identifier); - $this->assertFalse($inCache,'"has" did not return FALSE when checking on non existing identifier'); + $this->assertFalse($inCache, '"has" did not return FALSE when checking on non existing identifier'); } /** @@ -188,7 +188,7 @@ class t3lib_cache_backend_MemcachedBackendTest extends tx_phpunit_testcase { $backend = $this->setUpBackend(); $identifier = 'NonExistingIdentifier' . md5(uniqid(mt_rand(), TRUE)); $inCache = $backend->remove($identifier); - $this->assertFalse($inCache,'"remove" did not return FALSE when checking on non existing identifier'); + $this->assertFalse($inCache, '"remove" did not return FALSE when checking on non existing identifier'); } /** diff --git a/tests/Unit/t3lib/class.t3lib_divTest.php b/tests/Unit/t3lib/class.t3lib_divTest.php index 8d15fb453b32..1f661b25f85d 100644 --- a/tests/Unit/t3lib/class.t3lib_divTest.php +++ b/tests/Unit/t3lib/class.t3lib_divTest.php @@ -656,9 +656,9 @@ class t3lib_divTest extends tx_phpunit_testcase { */ public function uniqueListUnifiesCommaSeparatedListDataProvider() { return array( - 'List without duplicates' => array('one,two,three','one,two,three'), - 'List with two consecutive duplicates' => array('one,two,two,three,three','one,two,three'), - 'List with non-consecutive duplicates' => array('one,two,three,two,three','one,two,three'), + 'List without duplicates' => array('one,two,three', 'one,two,three'), + 'List with two consecutive duplicates' => array('one,two,two,three,three', 'one,two,three'), + 'List with non-consecutive duplicates' => array('one,two,three,two,three', 'one,two,three'), 'One item list' => array('one', 'one'), 'Empty list' => array('', ''), ); diff --git a/tests/Unit/t3lib/formprotection/class.t3lib_formprotection_BackendFormProtectionTest.php b/tests/Unit/t3lib/formprotection/class.t3lib_formprotection_BackendFormProtectionTest.php index c4d588480843..d76d8309e854 100644 --- a/tests/Unit/t3lib/formprotection/class.t3lib_formprotection_BackendFormProtectionTest.php +++ b/tests/Unit/t3lib/formprotection/class.t3lib_formprotection_BackendFormProtectionTest.php @@ -115,7 +115,7 @@ class t3lib_formprotection_BackendFormProtectionTest extends tx_phpunit_testcase ' public function getSessionData($key) {' . ' return $this->session[$key];' . ' }' . - ' public function setAndSaveSessionData($key,$data) {' . + ' public function setAndSaveSessionData($key, $data) {' . ' $this->session[$key] = $data;' . ' }' . '}' -- GitLab