Selaa lähdekoodia

Run php-cs against test suite.

Daniele Alessandri 11 vuotta sitten
vanhempi
commit
56627f30f8
100 muutettua tiedostoa jossa 38 lisäystä ja 218 poistoa
  1. 4 4
      tests/PHPUnit/PredisCommandTestCase.php
  2. 4 4
      tests/PHPUnit/PredisConnectionTestCase.php
  3. 4 4
      tests/PHPUnit/PredisDistributorTestCase.php
  4. 3 3
      tests/PHPUnit/PredisProfileTestCase.php
  5. 17 17
      tests/PHPUnit/PredisTestCase.php
  6. 1 1
      tests/PHPUnit/RedisCommandConstraint.php
  7. 1 1
      tests/Predis/ClientTest.php
  8. 1 1
      tests/Predis/Cluster/PredisClusterHashStrategyTest.php
  9. 1 1
      tests/Predis/Cluster/RedisClusterHashStrategyTest.php
  10. 0 2
      tests/Predis/Command/ConnectionAuthTest.php
  11. 0 2
      tests/Predis/Command/ConnectionEchoTest.php
  12. 0 2
      tests/Predis/Command/ConnectionPingTest.php
  13. 0 2
      tests/Predis/Command/ConnectionQuitTest.php
  14. 0 2
      tests/Predis/Command/ConnectionSelectTest.php
  15. 0 2
      tests/Predis/Command/HashDeleteTest.php
  16. 0 2
      tests/Predis/Command/HashExistsTest.php
  17. 0 2
      tests/Predis/Command/HashGetAllTest.php
  18. 0 2
      tests/Predis/Command/HashGetMultipleTest.php
  19. 0 2
      tests/Predis/Command/HashGetTest.php
  20. 0 2
      tests/Predis/Command/HashIncrementByFloatTest.php
  21. 0 2
      tests/Predis/Command/HashIncrementByTest.php
  22. 0 2
      tests/Predis/Command/HashKeysTest.php
  23. 0 2
      tests/Predis/Command/HashLengthTest.php
  24. 0 2
      tests/Predis/Command/HashScanTest.php
  25. 0 2
      tests/Predis/Command/HashSetMultipleTest.php
  26. 0 2
      tests/Predis/Command/HashSetPreserveTest.php
  27. 0 2
      tests/Predis/Command/HashSetTest.php
  28. 0 2
      tests/Predis/Command/HashValuesTest.php
  29. 0 2
      tests/Predis/Command/KeyDeleteTest.php
  30. 0 2
      tests/Predis/Command/KeyDumpTest.php
  31. 0 2
      tests/Predis/Command/KeyExistsTest.php
  32. 0 2
      tests/Predis/Command/KeyExpireAtTest.php
  33. 0 2
      tests/Predis/Command/KeyExpireTest.php
  34. 0 2
      tests/Predis/Command/KeyKeysTest.php
  35. 0 2
      tests/Predis/Command/KeyKeysV12xTest.php
  36. 0 2
      tests/Predis/Command/KeyMoveTest.php
  37. 0 2
      tests/Predis/Command/KeyPersistTest.php
  38. 0 2
      tests/Predis/Command/KeyPreciseExpireAtTest.php
  39. 0 2
      tests/Predis/Command/KeyPreciseExpireTest.php
  40. 0 2
      tests/Predis/Command/KeyPreciseTimeToLiveTest.php
  41. 0 2
      tests/Predis/Command/KeyRandomTest.php
  42. 0 2
      tests/Predis/Command/KeyRenamePreserveTest.php
  43. 0 2
      tests/Predis/Command/KeyRenameTest.php
  44. 0 2
      tests/Predis/Command/KeyRestoreTest.php
  45. 0 1
      tests/Predis/Command/KeyScanTest.php
  46. 2 4
      tests/Predis/Command/KeySortTest.php
  47. 0 2
      tests/Predis/Command/KeyTimeToLiveTest.php
  48. 0 2
      tests/Predis/Command/KeyTypeTest.php
  49. 0 2
      tests/Predis/Command/ListIndexTest.php
  50. 0 2
      tests/Predis/Command/ListInsertTest.php
  51. 0 2
      tests/Predis/Command/ListLengthTest.php
  52. 0 2
      tests/Predis/Command/ListPopFirstBlockingTest.php
  53. 0 2
      tests/Predis/Command/ListPopFirstTest.php
  54. 0 2
      tests/Predis/Command/ListPopLastBlockingTest.php
  55. 0 2
      tests/Predis/Command/ListPopLastPushHeadBlockingTest.php
  56. 0 2
      tests/Predis/Command/ListPopLastPushHeadTest.php
  57. 0 2
      tests/Predis/Command/ListPopLastTest.php
  58. 0 2
      tests/Predis/Command/ListPushHeadTest.php
  59. 0 2
      tests/Predis/Command/ListPushHeadXTest.php
  60. 0 2
      tests/Predis/Command/ListPushTailTest.php
  61. 0 2
      tests/Predis/Command/ListPushTailXTest.php
  62. 0 2
      tests/Predis/Command/ListRangeTest.php
  63. 0 2
      tests/Predis/Command/ListRemoveTest.php
  64. 0 2
      tests/Predis/Command/ListSetTest.php
  65. 0 2
      tests/Predis/Command/ListTrimTest.php
  66. 0 2
      tests/Predis/Command/PubSubPublishTest.php
  67. 0 2
      tests/Predis/Command/PubSubSubscribeByPatternTest.php
  68. 0 2
      tests/Predis/Command/PubSubSubscribeTest.php
  69. 0 2
      tests/Predis/Command/PubSubUnsubscribeByPatternTest.php
  70. 0 2
      tests/Predis/Command/PubSubUnsubscribeTest.php
  71. 0 1
      tests/Predis/Command/ScriptedCommandTest.php
  72. 0 2
      tests/Predis/Command/ServerBackgroundRewriteAOFTest.php
  73. 0 2
      tests/Predis/Command/ServerBackgroundSaveTest.php
  74. 0 2
      tests/Predis/Command/ServerClientTest.php
  75. 0 2
      tests/Predis/Command/ServerConfigTest.php
  76. 0 2
      tests/Predis/Command/ServerDatabaseSizeTest.php
  77. 0 2
      tests/Predis/Command/ServerEvalSHATest.php
  78. 0 2
      tests/Predis/Command/ServerEvalTest.php
  79. 0 2
      tests/Predis/Command/ServerFlushAllTest.php
  80. 0 2
      tests/Predis/Command/ServerFlushDatabaseTest.php
  81. 0 2
      tests/Predis/Command/ServerInfoTest.php
  82. 0 2
      tests/Predis/Command/ServerInfoV26xTest.php
  83. 0 2
      tests/Predis/Command/ServerLastSaveTest.php
  84. 0 2
      tests/Predis/Command/ServerMonitorTest.php
  85. 0 2
      tests/Predis/Command/ServerObjectTest.php
  86. 0 2
      tests/Predis/Command/ServerSaveTest.php
  87. 0 2
      tests/Predis/Command/ServerScriptTest.php
  88. 0 2
      tests/Predis/Command/ServerShutdownTest.php
  89. 0 2
      tests/Predis/Command/ServerSlaveOfTest.php
  90. 0 2
      tests/Predis/Command/ServerSlowlogTest.php
  91. 0 2
      tests/Predis/Command/ServerTimeTest.php
  92. 0 2
      tests/Predis/Command/SetAddTest.php
  93. 0 2
      tests/Predis/Command/SetCardinalityTest.php
  94. 0 2
      tests/Predis/Command/SetDifferenceStoreTest.php
  95. 0 2
      tests/Predis/Command/SetDifferenceTest.php
  96. 0 2
      tests/Predis/Command/SetIntersectionStoreTest.php
  97. 0 2
      tests/Predis/Command/SetIntersectionTest.php
  98. 0 2
      tests/Predis/Command/SetIsMemberTest.php
  99. 0 2
      tests/Predis/Command/SetMembersTest.php
  100. 0 2
      tests/Predis/Command/SetMoveTest.php

+ 4 - 4
tests/PHPUnit/PredisCommandTestCase.php

@@ -24,14 +24,14 @@ abstract class PredisCommandTestCase extends PredisTestCase
      *
      * @return CommandInterface|string Instance or FQN of the expected command.
      */
-    protected abstract function getExpectedCommand();
+    abstract protected function getExpectedCommand();
 
     /**
      * Returns the expected command ID.
      *
      * @return string
      */
-    protected abstract function getExpectedId();
+    abstract protected function getExpectedId();
 
     /**
      * Returns a new command instance.
@@ -48,7 +48,7 @@ abstract class PredisCommandTestCase extends PredisTestCase
     /**
      * Returns a new client instance.
      *
-     * @param bool $connect Flush selected database before returning the client.
+     * @param  bool   $connect Flush selected database before returning the client.
      * @return Client
      */
     public function getClient($flushdb = true)
@@ -90,7 +90,7 @@ abstract class PredisCommandTestCase extends PredisTestCase
     /**
      * Returns a new command instance with the specified arguments.
      *
-     * @param array $arguments Arguments for the command.
+     * @param  array            $arguments Arguments for the command.
      * @return CommandInterface
      */
     protected function getCommandWithArgumentsArray(Array $arguments)

+ 4 - 4
tests/PHPUnit/PredisConnectionTestCase.php

@@ -324,10 +324,10 @@ abstract class PredisConnectionTestCase extends PredisTestCase
     /**
      * Returns a new instance of a connection instance.
      *
-     * @param ServerProfile $profile Reference to the server profile instance.
-     * @param Boolean $initialize Push default initialization commands (SELECT and FLUSHDB).
-     * @param array $parameters Additional connection parameters.
+     * @param  ServerProfile    $profile    Reference to the server profile instance.
+     * @param  Boolean          $initialize Push default initialization commands (SELECT and FLUSHDB).
+     * @param  array            $parameters Additional connection parameters.
      * @return StreamConnection
      */
-    protected abstract function getConnection(&$profile = null, $initialize = false, Array $parameters = array());
+    abstract protected function getConnection(&$profile = null, $initialize = false, Array $parameters = array());
 }

+ 4 - 4
tests/PHPUnit/PredisDistributorTestCase.php

@@ -23,14 +23,14 @@ abstract class PredisDistributorTestCase extends PredisTestCase
      *
      * @return Predis\Cluster\Distribution\DistributionStrategyInterface
      */
-    protected abstract function getDistributorInstance();
+    abstract protected function getDistributorInstance();
 
     /**
      * Returns a list of nodes from the hashring.
      *
-     * @param DistributionStrategyInterface $ring Hashring instance.
-     * @param int $iterations Number of nodes to fetch.
-     * @return array Nodes from the hashring.
+     * @param  DistributionStrategyInterface $ring       Hashring instance.
+     * @param  int                           $iterations Number of nodes to fetch.
+     * @return array                         Nodes from the hashring.
      */
     protected function getNodes(DistributionStrategyInterface $ring, $iterations = 10)
     {

+ 3 - 3
tests/PHPUnit/PredisProfileTestCase.php

@@ -33,20 +33,20 @@ abstract class PredisProfileTestCase extends PredisTestCase
      *
      * @return string Version string.
      */
-    protected abstract function getExpectedVersion();
+    abstract protected function getExpectedVersion();
 
     /**
      * Returns the expected list of commands supported by the tested profile.
      *
      * @return array List of supported commands.
      */
-    protected abstract function getExpectedCommands();
+    abstract protected function getExpectedCommands();
 
     /**
      * Returns the list of commands supported by the current
      * server profile.
      *
-     * @param ServerProfileInterface $profile Server profile instance.
+     * @param  ServerProfileInterface $profile Server profile instance.
      * @return array
      */
     protected function getCommands(ServerProfileInterface $profile)

+ 17 - 17
tests/PHPUnit/PredisTestCase.php

@@ -24,8 +24,8 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
      * Verifies that a Redis command is a valid Predis\Command\CommandInterface
      * instance with the specified ID and command arguments.
      *
-     * @param string|CommandInterface $command Expected command or command ID.
-     * @param array $arguments Expected command arguments.
+     * @param string|CommandInterface $command   Expected command or command ID.
+     * @param array                   $arguments Expected command arguments.
      */
     public function isRedisCommand($command = null, array $arguments = null)
     {
@@ -39,7 +39,7 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
      * instance for $expected.
      *
      * @param array|string|CommandInterface $expected Expected command.
-     * @param mixed $actual Actual command.
+     * @param mixed                         $actual   Actual command.
      */
     public function assertRedisCommand($expected, $actual)
     {
@@ -57,7 +57,7 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
      * Asserts that two arrays have the same values, even if with different order.
      *
      * @param array $expected Expected array.
-     * @param array $actual Actual array.
+     * @param array $actual   Actual array.
      */
     public function assertSameValues(array $expected, array $actual)
     {
@@ -95,7 +95,7 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
      * Returns a named array with the default connection parameters merged with
      * the specified additional parameters.
      *
-     * @param array $additional Additional connection parameters.
+     * @param  array $additional Additional connection parameters.
      * @return array Connection parameters.
      */
     protected function getParametersArray(array $additional)
@@ -106,7 +106,7 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
     /**
      * Returns a new instance of connection parameters.
      *
-     * @param array $additional Additional connection parameters.
+     * @param  array                           $additional Additional connection parameters.
      * @return Connection\ConnectionParameters Default connection parameters.
      */
     protected function getParameters($additional = array())
@@ -120,7 +120,7 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
     /**
      * Returns a new instance of server profile.
      *
-     * @param array $additional Additional connection parameters.
+     * @param  array                  $additional Additional connection parameters.
      * @return ServerProfileInterface
      */
     protected function getProfile($version = null)
@@ -131,7 +131,7 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
     /**
      * Returns a new client instance.
      *
-     * @param bool $connect Flush selected database before returning the client.
+     * @param  bool   $connect Flush selected database before returning the client.
      * @return Client
      */
     protected function createClient(array $parameters = null, array $options = null, $flushdb = true)
@@ -159,8 +159,8 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
     }
 
     /**
-     * @param  string $expectedVersion Expected redis version
-     * @param  string $operator Comparison operator.
+     * @param  string                              $expectedVersion Expected redis version
+     * @param  string                              $operator        Comparison operator.
      * @throws \PHPUnit_Framework_SkippedTestError when expected redis version is not met
      */
     protected function executeOnRedisVersion($expectedVersion, $operator, $callback)
@@ -171,7 +171,7 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
         if (isset($info['server']['redis_version'])) {
             // Redis >= 2.6
             $version = $info['server']['redis_version'];
-        } else if (isset($info['redis_version'])) {
+        } elseif (isset($info['redis_version'])) {
             // Redis < 2.6
             $version = $info['redis_version'];
         } else {
@@ -188,8 +188,8 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
     }
 
     /**
-     * @param  string $expectedVersion Expected redis version
-     * @param  string $operator Comparison operator.
+     * @param  string                              $expectedVersion Expected redis version
+     * @param  string                              $operator        Comparison operator.
      * @throws \PHPUnit_Framework_SkippedTestError when expected redis version is not met
      */
     protected function executeOnProfileVersion($expectedVersion, $operator, $callback)
@@ -205,10 +205,10 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
     }
 
     /**
-     * @param  string $expectedVersion Expected redis version.
-     * @param  string $message Optional message.
-     * @param  bool $remote Based on local profile or remote redis version.
-     * @throws RuntimeException when unable to retrieve server info or redis version
+     * @param  string                              $expectedVersion Expected redis version.
+     * @param  string                              $message         Optional message.
+     * @param  bool                                $remote          Based on local profile or remote redis version.
+     * @throws RuntimeException                    when unable to retrieve server info or redis version
      * @throws \PHPUnit_Framework_SkippedTestError when expected redis version is not met
      */
     public function markTestSkippedOnRedisVersionBelow($expectedVersion, $message = '', $remote = true)

+ 1 - 1
tests/PHPUnit/RedisCommandConstraint.php

@@ -94,4 +94,4 @@ class RedisCommandConstraint extends PHPUnit_Framework_Constraint
 
         return "$string {$this->toString()}";
     }
-}
+}

+ 1 - 1
tests/Predis/ClientTest.php

@@ -754,7 +754,7 @@ class ClientTest extends PredisTestCase
     /**
      * Returns an URI string representation of the specified connection parameters.
      *
-     * @param Array $parameters Array of connection parameters.
+     * @param  Array  $parameters Array of connection parameters.
      * @return String URI string.
      */
     protected function getParametersString(Array $parameters)

+ 1 - 1
tests/Predis/Cluster/PredisClusterHashStrategyTest.php

@@ -244,7 +244,7 @@ class PredisClusterHashStrategyTest extends PredisTestCase
     /**
      * Returns the list of expected supported commands.
      *
-     * @param string $type Optional type of command (based on its keys)
+     * @param  string $type Optional type of command (based on its keys)
      * @return array
      */
     protected function getExpectedCommands($type = null)

+ 1 - 1
tests/Predis/Cluster/RedisClusterHashStrategyTest.php

@@ -250,7 +250,7 @@ class RedisClusterHashStrategyTest extends PredisTestCase
     /**
      * Returns the list of expected supported commands.
      *
-     * @param string $type Optional type of command (based on its keys)
+     * @param  string $type Optional type of command (based on its keys)
      * @return array
      */
     protected function getExpectedCommands($type = null)

+ 0 - 2
tests/Predis/Command/ConnectionAuthTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-connection

+ 0 - 2
tests/Predis/Command/ConnectionEchoTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-connection

+ 0 - 2
tests/Predis/Command/ConnectionPingTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-connection

+ 0 - 2
tests/Predis/Command/ConnectionQuitTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-connection

+ 0 - 2
tests/Predis/Command/ConnectionSelectTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-connection

+ 0 - 2
tests/Predis/Command/HashDeleteTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/HashExistsTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/HashGetAllTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/HashGetMultipleTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/HashGetTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/HashIncrementByFloatTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/HashIncrementByTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/HashKeysTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/HashLengthTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/HashScanTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/HashSetMultipleTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/HashSetPreserveTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/HashSetTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/HashValuesTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-hash

+ 0 - 2
tests/Predis/Command/KeyDeleteTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyDumpTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyExistsTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyExpireAtTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyExpireTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyKeysTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyKeysV12xTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * We only perform disconnected tests for this commands because
  * it is too old (Redis v1.2) and expects a different response

+ 0 - 2
tests/Predis/Command/KeyMoveTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyPersistTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyPreciseExpireAtTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyPreciseExpireTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyPreciseTimeToLiveTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyRandomTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyRenamePreserveTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyRenameTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyRestoreTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 1
tests/Predis/Command/KeyScanTest.php

@@ -11,7 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
 /**
  * @group commands
  * @group realm-key

+ 2 - 4
tests/Predis/Command/KeySortTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key
@@ -38,8 +36,8 @@ class KeySortTest extends PredisCommandTestCase
     /**
      * Utility method to to an LPUSH of some unordered values on a key.
      *
-     * @param Predis\Client $redis Redis client instance.
-     * @param string $key Target key
+     * @param  Predis\Client $redis Redis client instance.
+     * @param  string        $key   Target key
      * @return array
      */
     protected function lpushUnorderedList(Predis\Client $redis, $key)

+ 0 - 2
tests/Predis/Command/KeyTimeToLiveTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/KeyTypeTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-key

+ 0 - 2
tests/Predis/Command/ListIndexTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListInsertTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListLengthTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListPopFirstBlockingTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListPopFirstTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListPopLastBlockingTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListPopLastPushHeadBlockingTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListPopLastPushHeadTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListPopLastTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListPushHeadTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListPushHeadXTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListPushTailTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListPushTailXTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListRangeTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListRemoveTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListSetTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/ListTrimTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-list

+ 0 - 2
tests/Predis/Command/PubSubPublishTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-pubsub

+ 0 - 2
tests/Predis/Command/PubSubSubscribeByPatternTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-pubsub

+ 0 - 2
tests/Predis/Command/PubSubSubscribeTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-pubsub

+ 0 - 2
tests/Predis/Command/PubSubUnsubscribeByPatternTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-pubsub

+ 0 - 2
tests/Predis/Command/PubSubUnsubscribeTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-pubsub

+ 0 - 1
tests/Predis/Command/ScriptedCommandTest.php

@@ -37,7 +37,6 @@ class ScriptedCommandTest extends PredisTestCase
                 ->will($this->returnValue(2));
         $command->setArguments($arguments);
 
-
         $this->assertSame(array_merge(array(self::LUA_SCRIPT_SHA1, 2), $arguments), $command->getArguments());
     }
 

+ 0 - 2
tests/Predis/Command/ServerBackgroundRewriteAOFTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerBackgroundSaveTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerClientTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerConfigTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerDatabaseSizeTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerEvalSHATest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-scripting

+ 0 - 2
tests/Predis/Command/ServerEvalTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-scripting

+ 0 - 2
tests/Predis/Command/ServerFlushAllTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerFlushDatabaseTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerInfoTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerInfoV26xTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerLastSaveTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerMonitorTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerObjectTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerSaveTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerScriptTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-scripting

+ 0 - 2
tests/Predis/Command/ServerShutdownTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerSlaveOfTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/ServerSlowlogTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * In order to support the output of SLOWLOG, the backend connection
  * must be able to parse nested multibulk replies deeper than 2 levels.

+ 0 - 2
tests/Predis/Command/ServerTimeTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-server

+ 0 - 2
tests/Predis/Command/SetAddTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-set

+ 0 - 2
tests/Predis/Command/SetCardinalityTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-set

+ 0 - 2
tests/Predis/Command/SetDifferenceStoreTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-set

+ 0 - 2
tests/Predis/Command/SetDifferenceTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-set

+ 0 - 2
tests/Predis/Command/SetIntersectionStoreTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-set

+ 0 - 2
tests/Predis/Command/SetIntersectionTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-set

+ 0 - 2
tests/Predis/Command/SetIsMemberTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-set

+ 0 - 2
tests/Predis/Command/SetMembersTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-set

+ 0 - 2
tests/Predis/Command/SetMoveTest.php

@@ -11,8 +11,6 @@
 
 namespace Predis\Command;
 
-use PredisTestCase;
-
 /**
  * @group commands
  * @group realm-set

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä