mirror of
https://github.com/predis/predis.git
synced 2026-10-08 12:57:14 +00:00
Rename certain namespaces, interfaces and classes.
Now we follow a Symfony2-like naming convention for namespaces, interfaces and classes sticking with one clear rule. - Renamed namespaces: - Predis\Network - Predis\Profiles - Predis\Iterators - Predis\Options - Predis\Commands - Predis\Commands\Processors - Renamed interfaces: - Predis\IReplyObject - Predis\IRedisServerError - Predis\IConnectionFactory - Predis\IConnectionParameters - Predis\Options\IOption - Predis\Options\IClientOptions - Predis\Profile\IServerProfile - Predis\Pipeline\IPipelineExecutor - Predis\Distribution\INodeKeyGenerator - Predis\Distribution\IDistributionStrategy - Predis\Protocol\IProtocolProcessor - Predis\Protocol\IResponseReader - Predis\Protocol\IResponseHandler - Predis\Protocol\ICommandSerializer - Predis\Protocol\IComposableProtocolProcessor - Predis\Network\IConnection - Predis\Network\IConnectionSingle - Predis\Network\IConnectionComposable - Predis\Network\IConnectionCluster - Predis\Network\IConnectionReplication - Predis\Commands\ICommand - Predis\Commands\IPrefixable - Predis\Command\Processor\ICommandProcessor - Predis\Command\Processor\ICommandProcessorChain - Predis\Command\Processor\IProcessingSupport - Renamed Classes: - Predis\Commands\Command - Predis\Network\ConnectionBase - Classes moved to different namespaces: - Predis\MonitorContext Meh
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Predis\Profiles;
|
||||
namespace Predis\Profile;
|
||||
|
||||
use \PHPUnit_Framework_TestCase as StandardTestCase;
|
||||
|
||||
@@ -21,7 +21,7 @@ abstract class ServerVersionTestCase extends StandardTestCase
|
||||
/**
|
||||
* Returns a new instance of the tested profile.
|
||||
*
|
||||
* @return Predis\Profiles\IServerProfile
|
||||
* @return ServerProfileInterface
|
||||
*/
|
||||
protected abstract function getProfileInstance();
|
||||
|
||||
@@ -43,10 +43,10 @@ abstract class ServerVersionTestCase extends StandardTestCase
|
||||
* Returns the list of commands supported by the current
|
||||
* server profile.
|
||||
*
|
||||
* @param IServerProfile $profile Server profile instance.
|
||||
* @param ServerProfileInterface $profile Server profile instance.
|
||||
* @return array
|
||||
*/
|
||||
protected function getCommands(IServerProfile $profile)
|
||||
protected function getCommands(ServerProfileInterface $profile)
|
||||
{
|
||||
$commands = $profile->getSupportedCommands();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user