mirror of
https://github.com/predis/predis.git
synced 2026-10-09 05:16:32 +00:00
Added tests case with FLOAT16 and BFLOAT16 vectors (#1465)
* Added tests case with FLOAT16 and BFLOAT16 vectors * Added version restriction for test * Updated version restrictions
This commit is contained in:
committed by
GitHub
parent
cbef71090b
commit
c5fdfc81ef
@@ -22,7 +22,7 @@ abstract class PredisCommandTestCase extends PredisTestCase
|
||||
/**
|
||||
* Returns the expected command for tests.
|
||||
*
|
||||
* @return Command\CommandInterface|string Instance or FQCN of the expected command
|
||||
* @return CommandInterface|string Instance or FQCN of the expected command
|
||||
*/
|
||||
abstract protected function getExpectedCommand(): string;
|
||||
|
||||
@@ -36,13 +36,13 @@ abstract class PredisCommandTestCase extends PredisTestCase
|
||||
/**
|
||||
* Returns a new command instance.
|
||||
*
|
||||
* @return Command\CommandInterface
|
||||
* @return CommandInterface
|
||||
*/
|
||||
public function getCommand(): Command\CommandInterface
|
||||
public function getCommand(): CommandInterface
|
||||
{
|
||||
$command = $this->getExpectedCommand();
|
||||
|
||||
return $command instanceof Command\CommandInterface ? $command : new $command();
|
||||
return $command instanceof CommandInterface ? $command : new $command();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user