[BUGFIX] CGL violations FunctionCallArgumentSpacing in /tests/
authorRoland Waldner <most.wanted@gmx.at>
Sun, 20 May 2012 11:02:01 +0000 (13:02 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 20 May 2012 12:28:56 +0000 (14:28 +0200)
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
tests/Unit/t3lib/cache/backend/class.t3lib_cache_backend_apcbackendTest.php
tests/Unit/t3lib/cache/backend/class.t3lib_cache_backend_memcachedbackendTest.php
tests/Unit/t3lib/class.t3lib_divTest.php
tests/Unit/t3lib/formprotection/class.t3lib_formprotection_BackendFormProtectionTest.php

index 0d509f8..59a5dd1 100644 (file)
@@ -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');
        }
 
        /**
index 7db5a52..dc6c891 100644 (file)
@@ -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');
        }
 
        /**
index 8d15fb4..1f661b2 100644 (file)
@@ -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('', ''),
                );
index c4d5884..d76d830 100644 (file)
@@ -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;' .
                                '  }' .
                                '}'