[phpdoc] Fix undefined classes.

This commit is contained in:
Daniele Alessandri
2014-07-27 21:55:16 +02:00
parent aa5c893d5a
commit 4e1186f845
19 changed files with 46 additions and 46 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ class PredisCluster implements ClusterInterface, IteratorAggregate, Countable
* Returns the underlying command hash strategy used to hash commands by
* using keys found in their arguments.
*
* @return ClusterStrategyInterface
* @return StrategyInterface
*/
public function getClusterStrategy()
{
@@ -12,7 +12,7 @@
/**
* Constraint that accepts arrays with the same elements but different order.
*/
class ArrayHasSameValuesConstraint extends PHPUnit_Framework_Constraint
class ArrayHasSameValuesConstraint extends \PHPUnit_Framework_Constraint
{
protected $array;
+1 -1
View File
@@ -149,7 +149,7 @@ abstract class PredisProfileTestCase extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The class 'stdClass' is not a valid command class.
*/
public function testDefineInvalidCommand()
+14 -14
View File
@@ -17,7 +17,7 @@ use Predis\Profile;
/**
* Base test case class for the Predis test suite.
*/
abstract class PredisTestCase extends PHPUnit_Framework_TestCase
abstract class PredisTestCase extends \PHPUnit_Framework_TestCase
{
protected $redisServerVersion = null;
@@ -25,8 +25,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|Command\CommandInterface $command Expected command or command ID.
* @param array $arguments Expected command arguments.
* @return RedisCommandConstraint
*/
public function isRedisCommand($command = null, array $arguments = null)
@@ -40,9 +40,9 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
* not check for identity when passing a Predis\Command\CommandInterface
* instance for $expected.
*
* @param array|string|CommandInterface $expected Expected command.
* @param mixed $actual Actual command.
* @param string $message Optional assertion message.
* @param array|string|Command\CommandInterface $expected Expected command.
* @param mixed $actual Actual command.
* @param string $message Optional assertion message.
*/
public function assertRedisCommand($expected, $actual, $message = '')
{
@@ -195,11 +195,11 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
}
/**
* @param string $expectedVersion Expected redis version.
* @param string $operator Comparison operator.
* @param callable $callback Callback for matching version.
* @param string $expectedVersion Expected redis version.
* @param string $operator Comparison operator.
* @param callable $callback Callback for matching version.
* @return string
* @throws PHPUnit_Framework_SkippedTestError When expected redis version is not met
* @throws \PHPUnit_Framework_SkippedTestError When expected redis version is not met
*/
protected function executeOnRedisVersion($expectedVersion, $operator, $callback)
{
@@ -214,11 +214,11 @@ abstract class PredisTestCase extends PHPUnit_Framework_TestCase
}
/**
* @param string $expectedVersion Expected redis version.
* @param string $operator Comparison operator.
* @param callable $callback Callback for matching version.
* @param string $expectedVersion Expected redis version.
* @param string $operator Comparison operator.
* @param callable $callback Callback for matching version.
* @return string
* @throws PHPUnit_Framework_SkippedTestError When expected redis version is not met
* @throws \PHPUnit_Framework_SkippedTestError When expected redis version is not met
*/
protected function executeOnProfileVersion($expectedVersion, $operator, $callback)
{
+2 -2
View File
@@ -14,7 +14,7 @@ use Predis\Command\CommandInterface;
/**
* Constraint that verifies a redis command.
*/
class RedisCommandConstraint extends PHPUnit_Framework_Constraint
class RedisCommandConstraint extends \PHPUnit_Framework_Constraint
{
protected $commandID;
protected $arguments;
@@ -80,7 +80,7 @@ class RedisCommandConstraint extends PHPUnit_Framework_Constraint
if ($this->arguments) {
$string .= " and the following arguments:\n\n";
$string .= PHPUnit_Util_Type::export($this->arguments);
$string .= \PHPUnit_Util_Type::export($this->arguments);
}
return $string;
+2 -2
View File
@@ -213,7 +213,7 @@ class ClientTest extends PredisTestCase
/**
* @group disconnected
* @expectedException UnexpectedValueException
* @expectedException \UnexpectedValueException
* @expectedExceptionMessage The callable connection initializer returned an invalid type.
*/
public function testConstructorWithCallableConnectionInitializerThrowsExceptionOnInvalidReturnType()
@@ -293,7 +293,7 @@ class ClientTest extends PredisTestCase
/**
* @group disconnected
* @expectedException UnexpectedValueException
* @expectedException \UnexpectedValueException
* @expectedExceptionMessage The callable connection initializer returned an invalid type.
*/
public function testConstructorWithArrayAndOptionAggregateThrowsExceptionOnInvalidReturnType()
@@ -110,7 +110,7 @@ class ListKeyTest extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The $count argument must be a positive integer.
*/
public function testThrowsExceptionOnConstructorWithNonIntegerCountParameter()
@@ -125,7 +125,7 @@ class ListKeyTest extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The $count argument must be a positive integer.
*/
public function testThrowsExceptionOnConstructorWithNegativeCountParameter()
+2 -2
View File
@@ -60,7 +60,7 @@ class RawCommandTest extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The arguments array must contain at least the command ID.
*/
public function testExceptionOnMissingCommandID()
@@ -74,7 +74,7 @@ class RawCommandTest extends PredisTestCase
* argument is missing, PHP emits an E_WARNING.
*
* @group disconnected
* @expectedException PHPUnit_Framework_Error_Warning
* @expectedException \PHPUnit_Framework_Error_Warning
*/
public function testPHPWarningOnMissingCommandIDWithStaticCreate()
{
@@ -65,7 +65,7 @@ class ClusterOptionTest extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testThrowsExceptionOnInvalidInstanceType()
{
@@ -78,7 +78,7 @@ class ClusterOptionTest extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testThrowsExceptionOnInvalidShortNameString()
{
@@ -55,7 +55,7 @@ class ReplicationOptionTest extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testThrowsExceptionOnInvalidInstanceType()
{
@@ -65,7 +65,7 @@ class MasterSlaveReplicationTest extends PredisTestCase
/**
* @group disconnected
* @expectedException RuntimeException
* @expectedException \RuntimeException
* @expectedExceptionMessage Replication needs one master and at least one slave.
*/
public function testThrowsExceptionOnEmptyReplication()
@@ -76,7 +76,7 @@ class MasterSlaveReplicationTest extends PredisTestCase
/**
* @group disconnected
* @expectedException RuntimeException
* @expectedException \RuntimeException
* @expectedExceptionMessage Replication needs one master and at least one slave.
*/
public function testThrowsExceptionOnMissingMaster()
@@ -89,7 +89,7 @@ class MasterSlaveReplicationTest extends PredisTestCase
/**
* @group disconnected
* @expectedException RuntimeException
* @expectedException \RuntimeException
* @expectedExceptionMessage Replication needs one master and at least one slave.
*/
public function testThrowsExceptionOnMissingSlave()
@@ -200,7 +200,7 @@ class MasterSlaveReplicationTest extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Invalid connection or connection not found.
*/
public function testThrowsErrorWhenSwitchingToUnknownConnection()
+4 -4
View File
@@ -154,7 +154,7 @@ class FactoryTest extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expecteExceptionMessage Unknown connection scheme: 'unknown'.
*/
public function testCreateUndefinedConnection()
@@ -210,7 +210,7 @@ class FactoryTest extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testDefineConnectionWithInvalidArgument()
{
@@ -220,7 +220,7 @@ class FactoryTest extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expecteExceptionMessage Unknown connection scheme: 'tcp'.
*/
public function testUndefineDefinedConnection()
@@ -244,7 +244,7 @@ class FactoryTest extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expecteExceptionMessage Unknown connection scheme: 'redis'.
*/
public function testDefineAndUndefineConnection()
+1 -1
View File
@@ -224,7 +224,7 @@ class ParametersTest extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Invalid parameters URI: tcp://invalid:uri
*/
public function testParsingURIThrowOnInvalidURI()
@@ -39,7 +39,7 @@ class PhpiredisSocketConnectionTest extends PredisConnectionTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Invalid scheme: 'udp'.
*/
public function testThrowsExceptionOnInvalidScheme()
@@ -39,7 +39,7 @@ class PhpiredisStreamConnectionTest extends PredisConnectionTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Invalid scheme: 'udp'.
*/
public function testThrowsExceptionOnInvalidScheme()
@@ -39,7 +39,7 @@ class StreamConnectionTest extends PredisConnectionTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Invalid scheme: 'udp'.
*/
public function testThrowsExceptionOnInvalidScheme()
+1 -1
View File
@@ -85,7 +85,7 @@ class FactoryTest extends PredisTestCase
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The class 'stdClass' is not a valid profile class.
*/
public function testDefineInvalidProfile()
@@ -23,7 +23,7 @@ class MultiBulkTupleTest extends PredisTestCase
{
/**
* @group disconnected
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Cannot initialize a tuple iterator using an already initiated iterator.
*/
public function testInitiatedMultiBulkIteratorsAreNotValid()
@@ -37,7 +37,7 @@ class MultiBulkTupleTest extends PredisTestCase
/**
* @group disconnected
* @expectedException UnexpectedValueException
* @expectedException \UnexpectedValueException
* @expectedExceptionMessage Invalid response size for a tuple iterator.
*/
public function testMultiBulkWithOddSizesAreInvalid()
+3 -3
View File
@@ -933,9 +933,9 @@ class MultiExecTest extends PredisTestCase
* Returns a client instance connected to the specified Redis
* server instance to perform integration tests.
*
* @param array Additional connection parameters.
* @param array Additional client options.
* @return Client client instance.
* @param array $parameters Additional connection parameters.
* @param array $options Additional client options.
* @return Client
*/
protected function getClient(array $parameters = array(), array $options = array())
{