mirror of
https://github.com/predis/predis.git
synced 2026-09-13 11:57:02 +00:00
align phpdoc vertically
This commit is contained in:
@@ -32,7 +32,7 @@ abstract class AbstractBy implements ByInterface
|
||||
abstract public function toArray(): array;
|
||||
|
||||
/**
|
||||
* @param string $unit
|
||||
* @param string $unit
|
||||
* @return void
|
||||
*/
|
||||
protected function setUnit(string $unit): void
|
||||
|
||||
@@ -27,7 +27,7 @@ class OneOfConstraint extends Constraint
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $other
|
||||
* @param mixed $other
|
||||
* @return bool
|
||||
*/
|
||||
protected function matches($other): bool
|
||||
|
||||
@@ -51,7 +51,7 @@ abstract class PredisCommandTestCase extends PredisTestCase
|
||||
/**
|
||||
* Returns a new client instance.
|
||||
*
|
||||
* @param bool $flushdb Flush selected database before returning the client
|
||||
* @param bool $flushdb Flush selected database before returning the client
|
||||
* @return Client
|
||||
*/
|
||||
public function getClient(bool $flushdb = true): Client
|
||||
|
||||
@@ -99,9 +99,9 @@ abstract class PredisTestCase extends \PHPUnit\Framework\TestCase
|
||||
/**
|
||||
* Asserts that actual value is one of the values from expected array.
|
||||
*
|
||||
* @param mixed $expected Expected array.
|
||||
* @param mixed $actual Actual value. If array given searching for any matching value between two arrays.
|
||||
* @param string $message Optional assertion message
|
||||
* @param mixed $expected Expected array.
|
||||
* @param mixed $actual Actual value. If array given searching for any matching value between two arrays.
|
||||
* @param string $message Optional assertion message
|
||||
* @return void
|
||||
*/
|
||||
public function assertOneOf(array $expected, $actual, string $message = ''): void
|
||||
|
||||
@@ -375,7 +375,7 @@ class KeyPrefixProcessorTest extends PredisTestCase
|
||||
* Returns a command instance by ID populated with the specified arguments.
|
||||
*
|
||||
* @param string $commandID ID of the Redis command
|
||||
* @param array $arguments List of arguments for the command
|
||||
* @param array $arguments List of arguments for the command
|
||||
*
|
||||
* @return CommandInterface
|
||||
*/
|
||||
|
||||
@@ -57,13 +57,13 @@ class BLMOVE_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider listsProvider
|
||||
* @param array $firstList
|
||||
* @param array $secondList
|
||||
* @param string $where
|
||||
* @param string $to
|
||||
* @param string $expectedResponse
|
||||
* @param array $expectedModifiedFirstList
|
||||
* @param array $expectedModifiedSecondList
|
||||
* @param array $firstList
|
||||
* @param array $secondList
|
||||
* @param string $where
|
||||
* @param string $to
|
||||
* @param string $expectedResponse
|
||||
* @param array $expectedModifiedFirstList
|
||||
* @param array $expectedModifiedSecondList
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
@@ -91,11 +91,11 @@ class BLMOVE_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider sameListProvider
|
||||
* @param array $list
|
||||
* @param string $where
|
||||
* @param string $to
|
||||
* @param string $expectedResponse
|
||||
* @param array $expectedModifiedList
|
||||
* @param array $list
|
||||
* @param string $where
|
||||
* @param string $to
|
||||
* @param string $expectedResponse
|
||||
* @param array $expectedModifiedList
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
|
||||
@@ -62,13 +62,13 @@ class BLMPOP_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider listProvider
|
||||
* @param int $timeout
|
||||
* @param array $listArguments
|
||||
* @param string $key
|
||||
* @param string $modifier
|
||||
* @param int $count
|
||||
* @param array $expectedResponse
|
||||
* @param array $expectedModifiedList
|
||||
* @param int $timeout
|
||||
* @param array $listArguments
|
||||
* @param string $key
|
||||
* @param string $modifier
|
||||
* @param int $count
|
||||
* @param array $expectedResponse
|
||||
* @param array $expectedModifiedList
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 7.0.0
|
||||
*/
|
||||
|
||||
@@ -57,13 +57,13 @@ class BZMPOP_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider sortedSetsProvider
|
||||
* @param int $timeout
|
||||
* @param array $sortedSetDictionary
|
||||
* @param string $key
|
||||
* @param string $modifier
|
||||
* @param int $count
|
||||
* @param array $expectedResponse
|
||||
* @param array $expectedModifiedSortedSet
|
||||
* @param int $timeout
|
||||
* @param array $sortedSetDictionary
|
||||
* @param string $key
|
||||
* @param string $modifier
|
||||
* @param int $count
|
||||
* @param array $expectedResponse
|
||||
* @param array $expectedModifiedSortedSet
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 7.0
|
||||
*/
|
||||
@@ -88,11 +88,11 @@ class BZMPOP_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider unexpectedValuesProvider
|
||||
* @param int $timeout
|
||||
* @param array $keys
|
||||
* @param string $modifier
|
||||
* @param int $count
|
||||
* @param string $expectedExceptionMessage
|
||||
* @param int $timeout
|
||||
* @param array $keys
|
||||
* @param string $modifier
|
||||
* @param int $count
|
||||
* @param string $expectedExceptionMessage
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 7.0
|
||||
*/
|
||||
|
||||
@@ -62,18 +62,18 @@ class GEOSEARCHSTORE_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider coordinatesProvider
|
||||
* @param array $firstCoordinates
|
||||
* @param array $secondCoordinates
|
||||
* @param array $thirdCoordinates
|
||||
* @param string $destination
|
||||
* @param string $source
|
||||
* @param FromInterface $from
|
||||
* @param ByInterface $by
|
||||
* @param string|null $sorting
|
||||
* @param int $count
|
||||
* @param bool $any
|
||||
* @param int $expectedResultingElements
|
||||
* @param array $expectedResponse
|
||||
* @param array $firstCoordinates
|
||||
* @param array $secondCoordinates
|
||||
* @param array $thirdCoordinates
|
||||
* @param string $destination
|
||||
* @param string $source
|
||||
* @param FromInterface $from
|
||||
* @param ByInterface $by
|
||||
* @param string|null $sorting
|
||||
* @param int $count
|
||||
* @param bool $any
|
||||
* @param int $expectedResultingElements
|
||||
* @param array $expectedResponse
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
@@ -142,9 +142,9 @@ class GEOSEARCHSTORE_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider unexpectedValuesProvider
|
||||
* @param array $arguments
|
||||
* @param string $expectedException
|
||||
* @param string $expectedExceptionMessage
|
||||
* @param array $arguments
|
||||
* @param string $expectedException
|
||||
* @param string $expectedExceptionMessage
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
|
||||
@@ -63,19 +63,19 @@ class GEOSEARCH_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider coordinatesProvider
|
||||
* @param array $firstCoordinates
|
||||
* @param array $secondCoordinates
|
||||
* @param array $thirdCoordinates
|
||||
* @param string $key
|
||||
* @param FromInterface $from
|
||||
* @param ByInterface $by
|
||||
* @param string|null $sorting
|
||||
* @param int $count
|
||||
* @param bool $any
|
||||
* @param bool $withCoord
|
||||
* @param bool $withDist
|
||||
* @param bool $withHash
|
||||
* @param array $expectedResponse
|
||||
* @param array $firstCoordinates
|
||||
* @param array $secondCoordinates
|
||||
* @param array $thirdCoordinates
|
||||
* @param string $key
|
||||
* @param FromInterface $from
|
||||
* @param ByInterface $by
|
||||
* @param string|null $sorting
|
||||
* @param int $count
|
||||
* @param bool $any
|
||||
* @param bool $withCoord
|
||||
* @param bool $withDist
|
||||
* @param bool $withHash
|
||||
* @param array $expectedResponse
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
@@ -109,9 +109,9 @@ class GEOSEARCH_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider unexpectedValuesProvider
|
||||
* @param array $arguments
|
||||
* @param string $expectedException
|
||||
* @param string $expectedExceptionMessage
|
||||
* @param array $arguments
|
||||
* @param string $expectedException
|
||||
* @param string $expectedExceptionMessage
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
|
||||
@@ -61,9 +61,9 @@ class GETEX_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider keysProvider
|
||||
* @param array $kvPair
|
||||
* @param array $arguments
|
||||
* @param string $expectedResponse
|
||||
* @param array $kvPair
|
||||
* @param array $arguments
|
||||
* @param string $expectedResponse
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
@@ -82,8 +82,8 @@ class GETEX_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider unexpectedValuesProvider
|
||||
* @param array $arguments
|
||||
* @param string $expectedExceptionMessage
|
||||
* @param array $arguments
|
||||
* @param string $expectedExceptionMessage
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
|
||||
@@ -35,8 +35,8 @@ class HRANDFIELD_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group disconnected
|
||||
* @dataProvider argumentsProvider
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testFilterArguments(array $actualArguments, array $expectedArguments): void
|
||||
@@ -58,11 +58,11 @@ class HRANDFIELD_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider hashesProvider
|
||||
* @param array $hash
|
||||
* @param string $key
|
||||
* @param int $count
|
||||
* @param bool $withValues
|
||||
* @param array $expectedResponse
|
||||
* @param array $hash
|
||||
* @param string $key
|
||||
* @param int $count
|
||||
* @param bool $withValues
|
||||
* @param array $expectedResponse
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
|
||||
@@ -61,13 +61,13 @@ class LMOVE_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider listsProvider
|
||||
* @param array $firstList
|
||||
* @param array $secondList
|
||||
* @param string $where
|
||||
* @param string $to
|
||||
* @param string $expectedResponse
|
||||
* @param array $expectedModifiedFirstList
|
||||
* @param array $expectedModifiedSecondList
|
||||
* @param array $firstList
|
||||
* @param array $secondList
|
||||
* @param string $where
|
||||
* @param string $to
|
||||
* @param string $expectedResponse
|
||||
* @param array $expectedModifiedFirstList
|
||||
* @param array $expectedModifiedSecondList
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
@@ -113,11 +113,11 @@ class LMOVE_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider sameListProvider
|
||||
* @param array $list
|
||||
* @param string $where
|
||||
* @param string $to
|
||||
* @param string $expectedResponse
|
||||
* @param array $expectedModifiedList
|
||||
* @param array $list
|
||||
* @param string $where
|
||||
* @param string $to
|
||||
* @param string $expectedResponse
|
||||
* @param array $expectedModifiedList
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
|
||||
@@ -62,12 +62,12 @@ class LMPOP_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider listProvider
|
||||
* @param array $listArguments
|
||||
* @param string $key
|
||||
* @param string $modifier
|
||||
* @param int $count
|
||||
* @param array|null $expectedResponse
|
||||
* @param array $expectedModifiedList
|
||||
* @param array $listArguments
|
||||
* @param string $key
|
||||
* @param string $modifier
|
||||
* @param int $count
|
||||
* @param array|null $expectedResponse
|
||||
* @param array $expectedModifiedList
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 7.0.0
|
||||
*/
|
||||
|
||||
@@ -63,10 +63,10 @@ class SMISMEMBER_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider membersProvider
|
||||
* @param array $set
|
||||
* @param string $key
|
||||
* @param array $members
|
||||
* @param array $expectedResponse
|
||||
* @param array $set
|
||||
* @param string $key
|
||||
* @param array $members
|
||||
* @param array $expectedResponse
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
|
||||
@@ -55,10 +55,10 @@ class ZDIFFSTORE_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider sortedSetsProvider
|
||||
* @param array $firstSetDictionary
|
||||
* @param array $secondSetDictionary
|
||||
* @param array $expectedResponse
|
||||
* @param int $expectedResultingElements
|
||||
* @param array $firstSetDictionary
|
||||
* @param array $secondSetDictionary
|
||||
* @param array $expectedResponse
|
||||
* @param int $expectedResultingElements
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
|
||||
@@ -55,10 +55,10 @@ class ZDIFF_test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider sortedSetsProvider
|
||||
* @param array $firstSetDictionary
|
||||
* @param array $secondSetDictionary
|
||||
* @param array $expectedResponse
|
||||
* @param bool $withScores
|
||||
* @param array $firstSetDictionary
|
||||
* @param array $secondSetDictionary
|
||||
* @param array $expectedResponse
|
||||
* @param bool $withScores
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
|
||||
@@ -56,10 +56,10 @@ class ZINTERCARD_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider sortedSetsProvider
|
||||
* @param array $firstSortedSet
|
||||
* @param array $secondSortedSet
|
||||
* @param int $limit
|
||||
* @param int $expectedResponse
|
||||
* @param array $firstSortedSet
|
||||
* @param array $secondSortedSet
|
||||
* @param int $limit
|
||||
* @param int $expectedResponse
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 7.0.0
|
||||
*/
|
||||
@@ -112,7 +112,7 @@ class ZINTERCARD_Test extends PredisCommandTestCase
|
||||
* @dataProvider unexpectedValuesProvider
|
||||
* @param $keys
|
||||
* @param $limit
|
||||
* @param string $expectedExceptionMessage
|
||||
* @param string $expectedExceptionMessage
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 7.0.0
|
||||
*/
|
||||
|
||||
@@ -60,13 +60,13 @@ class ZINTERSTORE_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider sortedSetsProvider
|
||||
* @param array $firstSortedSet
|
||||
* @param array $secondSortedSet
|
||||
* @param string $destination
|
||||
* @param array $weights
|
||||
* @param string $aggregate
|
||||
* @param int $expectedResponse
|
||||
* @param array $expectedResultSortedSet
|
||||
* @param array $firstSortedSet
|
||||
* @param array $secondSortedSet
|
||||
* @param string $destination
|
||||
* @param array $weights
|
||||
* @param string $aggregate
|
||||
* @param int $expectedResponse
|
||||
* @param array $expectedResultSortedSet
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
@@ -118,8 +118,8 @@ class ZINTERSTORE_Test extends PredisCommandTestCase
|
||||
* @param string $destination
|
||||
* @param $keys
|
||||
* @param $weights
|
||||
* @param string $aggregate
|
||||
* @param string $expectedExceptionMessage
|
||||
* @param string $aggregate
|
||||
* @param string $expectedExceptionMessage
|
||||
* @return void
|
||||
*/
|
||||
public function testThrowsExceptionOnUnexpectedValueGiven(
|
||||
|
||||
@@ -78,12 +78,12 @@ class ZINTER_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider sortedSetsProvider
|
||||
* @param array $firstSortedSet
|
||||
* @param array $secondSortedSet
|
||||
* @param array $weights
|
||||
* @param string $aggregate
|
||||
* @param bool $withScores
|
||||
* @param array $expectedResponse
|
||||
* @param array $firstSortedSet
|
||||
* @param array $secondSortedSet
|
||||
* @param array $weights
|
||||
* @param string $aggregate
|
||||
* @param bool $withScores
|
||||
* @param array $expectedResponse
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
@@ -129,9 +129,9 @@ class ZINTER_Test extends PredisCommandTestCase
|
||||
* @dataProvider unexpectedValueProvider
|
||||
* @param $keys
|
||||
* @param $weights
|
||||
* @param string $aggregate
|
||||
* @param bool $withScores
|
||||
* @param string $expectedExceptionMessage
|
||||
* @param string $aggregate
|
||||
* @param bool $withScores
|
||||
* @param string $expectedExceptionMessage
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
|
||||
@@ -57,12 +57,12 @@ class ZMPOP_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider sortedSetsProvider
|
||||
* @param array $sortedSetDictionary
|
||||
* @param string $key
|
||||
* @param string $modifier
|
||||
* @param int $count
|
||||
* @param array $expectedResponse
|
||||
* @param array $expectedModifiedSortedSet
|
||||
* @param array $sortedSetDictionary
|
||||
* @param string $key
|
||||
* @param string $modifier
|
||||
* @param int $count
|
||||
* @param array $expectedResponse
|
||||
* @param array $expectedModifiedSortedSet
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 7.0
|
||||
*/
|
||||
@@ -105,10 +105,10 @@ class ZMPOP_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider unexpectedValuesProvider
|
||||
* @param array $keys
|
||||
* @param string $modifier
|
||||
* @param int $count
|
||||
* @param string $expectedExceptionMessage
|
||||
* @param array $keys
|
||||
* @param string $modifier
|
||||
* @param int $count
|
||||
* @param string $expectedExceptionMessage
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 7.0
|
||||
*/
|
||||
|
||||
@@ -55,11 +55,11 @@ class ZRANDMEMBER_test extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @param string $key
|
||||
* @param int $count
|
||||
* @param array $membersDictionary
|
||||
* @param array $expectedResponse
|
||||
* @param bool $withScores
|
||||
* @param string $key
|
||||
* @param int $count
|
||||
* @param array $membersDictionary
|
||||
* @param array $expectedResponse
|
||||
* @param bool $withScores
|
||||
* @return void
|
||||
* @dataProvider membersProvider
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
|
||||
@@ -55,16 +55,16 @@ class ZRANGESTORE_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider rangesProvider
|
||||
* @param array $actualSortedSet
|
||||
* @param int|string $min
|
||||
* @param int|string $max
|
||||
* @param array $actualSortedSet
|
||||
* @param int|string $min
|
||||
* @param int|string $max
|
||||
* @param string|bool $by
|
||||
* @param bool $rev
|
||||
* @param bool $limit
|
||||
* @param int $offset
|
||||
* @param int $count
|
||||
* @param int $expectedResultingElements
|
||||
* @param array $expectedResponse
|
||||
* @param bool $rev
|
||||
* @param bool $limit
|
||||
* @param int $offset
|
||||
* @param int $count
|
||||
* @param int $expectedResultingElements
|
||||
* @param array $expectedResponse
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
* @return void
|
||||
*/
|
||||
@@ -102,14 +102,14 @@ class ZRANGESTORE_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider unexpectedValuesProvider
|
||||
* @param int|string $min
|
||||
* @param int|string $max
|
||||
* @param int|string $min
|
||||
* @param int|string $max
|
||||
* @param string|bool $by
|
||||
* @param $rev
|
||||
* @param $limit
|
||||
* @param int $offset
|
||||
* @param int $count
|
||||
* @param string $expectedExceptionMessage
|
||||
* @param int $offset
|
||||
* @param int $count
|
||||
* @param string $expectedExceptionMessage
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
|
||||
@@ -60,13 +60,13 @@ class ZUNIONSTORE_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider sortedSetsProvider
|
||||
* @param array $firstSortedSet
|
||||
* @param array $secondSortedSet
|
||||
* @param string $destination
|
||||
* @param array $weights
|
||||
* @param string $aggregate
|
||||
* @param int $expectedResponse
|
||||
* @param array $expectedResultSortedSet
|
||||
* @param array $firstSortedSet
|
||||
* @param array $secondSortedSet
|
||||
* @param string $destination
|
||||
* @param array $weights
|
||||
* @param string $aggregate
|
||||
* @param int $expectedResponse
|
||||
* @param array $expectedResultSortedSet
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 2.0.0
|
||||
*/
|
||||
@@ -118,8 +118,8 @@ class ZUNIONSTORE_Test extends PredisCommandTestCase
|
||||
* @param string $destination
|
||||
* @param $keys
|
||||
* @param $weights
|
||||
* @param string $aggregate
|
||||
* @param string $expectedExceptionMessage
|
||||
* @param string $aggregate
|
||||
* @param string $expectedExceptionMessage
|
||||
* @return void
|
||||
*/
|
||||
public function testThrowsExceptionOnUnexpectedValueGiven(
|
||||
|
||||
@@ -52,12 +52,12 @@ class ZUNION_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
* @dataProvider sortedSetsProvider
|
||||
* @param array $firstSortedSet
|
||||
* @param array $secondSortedSet
|
||||
* @param array $weights
|
||||
* @param string $aggregate
|
||||
* @param bool $withScores
|
||||
* @param array $expectedResponse
|
||||
* @param array $firstSortedSet
|
||||
* @param array $secondSortedSet
|
||||
* @param array $weights
|
||||
* @param string $aggregate
|
||||
* @param bool $withScores
|
||||
* @param array $expectedResponse
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
@@ -104,9 +104,9 @@ class ZUNION_Test extends PredisCommandTestCase
|
||||
* @dataProvider unexpectedValueProvider
|
||||
* @param $keys
|
||||
* @param $weights
|
||||
* @param string $aggregate
|
||||
* @param bool $withScores
|
||||
* @param string $expectedExceptionMessage
|
||||
* @param string $aggregate
|
||||
* @param bool $withScores
|
||||
* @param string $expectedExceptionMessage
|
||||
* @return void
|
||||
* @requiresRedisVersion >= 6.2.0
|
||||
*/
|
||||
|
||||
@@ -36,9 +36,9 @@ class AggregateTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, array $actualArguments, array $expectedArguments): void
|
||||
@@ -52,7 +52,7 @@ class AggregateTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider unexpectedValuesProvider
|
||||
* @param array $actualArguments
|
||||
* @param array $actualArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testThrowsExceptionOnUnexpectedValueGiven(array $actualArguments): void
|
||||
|
||||
@@ -38,8 +38,8 @@ class GeoByTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(array $actualArguments, array $expectedArguments): void
|
||||
|
||||
@@ -39,9 +39,9 @@ class ByLexByScoreTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, array $actualArguments, array $expectedArguments): void
|
||||
@@ -55,7 +55,7 @@ class ByLexByScoreTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider unexpectedValuesProvider
|
||||
* @param array $actualArguments
|
||||
* @param array $actualArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testThrowsExceptionOnUnexpectedValue(array $actualArguments): void
|
||||
|
||||
@@ -38,10 +38,10 @@ class CountTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $arguments
|
||||
* @param bool $any
|
||||
* @param array $expectedResponse
|
||||
* @param int $offset
|
||||
* @param array $arguments
|
||||
* @param bool $any
|
||||
* @param array $expectedResponse
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, bool $any, array $arguments, array $expectedResponse): void
|
||||
|
||||
@@ -38,9 +38,9 @@ class DbTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $arguments
|
||||
* @param array $expectedResponse
|
||||
* @param int $offset
|
||||
* @param array $arguments
|
||||
* @param array $expectedResponse
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, array $arguments, array $expectedResponse): void
|
||||
|
||||
@@ -38,8 +38,8 @@ class GeoFromTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(array $actualArguments, array $expectedArguments): void
|
||||
|
||||
@@ -38,10 +38,10 @@ class KeysTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param bool $withNumkeys
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param int $offset
|
||||
* @param bool $withNumkeys
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(
|
||||
@@ -59,8 +59,8 @@ class KeysTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider unexpectedValuesProvider
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testThrowsExceptionOnUnexpectedValueGiven(int $offset, array $actualArguments): void
|
||||
|
||||
@@ -36,9 +36,9 @@ class LeftRightTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, array $actualArguments, array $expectedArguments): void
|
||||
@@ -52,7 +52,7 @@ class LeftRightTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider unexpectedValuesProvider
|
||||
* @param array $actualArguments
|
||||
* @param array $actualArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testThrowsExceptionOnUnexpectedValueGiven(array $actualArguments): void
|
||||
|
||||
@@ -38,9 +38,9 @@ class LimitTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, array $actualArguments, array $expectedArguments): void
|
||||
|
||||
@@ -36,9 +36,9 @@ class MinMaxModifierTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testResolveModifierModifyArrayCorrect(
|
||||
|
||||
@@ -35,8 +35,8 @@ class ReplaceTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param array $arguments
|
||||
* @param array $expectedResponse
|
||||
* @param array $arguments
|
||||
* @param array $expectedResponse
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(array $arguments, array $expectedResponse): void
|
||||
|
||||
@@ -38,9 +38,9 @@ class RevTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, array $actualArguments, array $expectedArguments): void
|
||||
|
||||
@@ -38,9 +38,9 @@ class StoredistTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, array $actualArguments, array $expectedArguments): void
|
||||
|
||||
@@ -38,9 +38,9 @@ class TimeoutTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $arguments
|
||||
* @param array $expectedResponse
|
||||
* @param int $offset
|
||||
* @param array $arguments
|
||||
* @param array $expectedResponse
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, array $arguments, array $expectedResponse): void
|
||||
|
||||
@@ -38,9 +38,9 @@ class ServerToTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $arguments
|
||||
* @param array $expectedResponse
|
||||
* @param int $offset
|
||||
* @param array $arguments
|
||||
* @param array $expectedResponse
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, array $arguments, array $expectedResponse): void
|
||||
|
||||
@@ -36,9 +36,9 @@ class WeightsTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, array $actualArguments, array $expectedArguments): void
|
||||
|
||||
@@ -38,9 +38,9 @@ class WithCoordTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, array $actualArguments, array $expectedArguments): void
|
||||
|
||||
@@ -38,9 +38,9 @@ class WithDistTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, array $actualArguments, array $expectedArguments): void
|
||||
|
||||
@@ -38,9 +38,9 @@ class WithHashTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider argumentsProvider
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param int $offset
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(int $offset, array $actualArguments, array $expectedArguments): void
|
||||
|
||||
@@ -38,8 +38,8 @@ class WithScoresTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider valuesProvider
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @param array $actualArguments
|
||||
* @param array $expectedArguments
|
||||
* @return void
|
||||
*/
|
||||
public function testReturnsCorrectArguments(array $actualArguments, array $expectedArguments): void
|
||||
@@ -51,8 +51,8 @@ class WithScoresTest extends PredisTestCase
|
||||
|
||||
/**
|
||||
* @dataProvider dataProvider
|
||||
* @param array $actualData
|
||||
* @param array $expectedResponse
|
||||
* @param array $actualData
|
||||
* @param array $expectedResponse
|
||||
* @return void
|
||||
*/
|
||||
public function testParseDataReturnsCorrectResponse(array $actualData, array $expectedResponse): void
|
||||
|
||||
Reference in New Issue
Block a user