Browse Source

Fix CS errors in tests

ADmad 11 years ago
parent
commit
944caaaa99

+ 2 - 0
tests/TestCase/Cache/Engine/MemcachedEngineTest.php

@@ -66,7 +66,9 @@ class MemcachedEngineTest extends TestCase
         parent::setUp();
         $this->skipIf(!class_exists('Memcached'), 'Memcached is not installed or configured properly.');
 
+        // @codingStandardsIgnoreStart
         $socket = @fsockopen('127.0.0.1', 11211, $errno, $errstr, 1);
+        // @codingStandardsIgnoreEnd
         $this->skipIf(!$socket, 'Memcached is not running.');
         fclose($socket);
 

+ 2 - 0
tests/TestCase/Cache/Engine/RedisEngineTest.php

@@ -38,7 +38,9 @@ class RedisEngineTest extends TestCase
         parent::setUp();
         $this->skipIf(!class_exists('Redis'), 'Redis extension is not installed or configured properly.');
 
+        // @codingStandardsIgnoreStart
         $socket = @fsockopen('127.0.0.1', 6379, $errno, $errstr, 1);
+        // @codingStandardsIgnoreEnd
         $this->skipIf(!$socket, 'Redis is not running.');
         fclose($socket);