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:
Vladyslav Vildanov
2024-06-28 21:18:07 +03:00
committed by GitHub
parent cbef71090b
commit c5fdfc81ef
17 changed files with 67 additions and 39 deletions
+4 -4
View File
@@ -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();
}
/**