Create Predis\Cluster namespace and move related classes / interfaces.

This commit is contained in:
Daniele Alessandri
2012-07-30 20:10:14 +02:00
parent 7683f97ff2
commit e54bc31212
19 changed files with 33 additions and 34 deletions
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace Predis\Distribution;
namespace Predis\Cluster\Distribution;
use \PHPUnit_Framework_TestCase as StandardTestCase;
@@ -21,7 +21,7 @@ abstract class DistributionStrategyTestCase extends StandardTestCase
/**
* Returns a new instance of the tested distributor.
*
* @return Predis\Distribution\DistributionStrategyInterface
* @return Predis\Cluster\Distribution\DistributionStrategyInterface
*/
protected abstract function getDistributorInstance();
@@ -49,7 +49,7 @@ abstract class DistributionStrategyTestCase extends StandardTestCase
*/
public function testEmptyRingThrowsException()
{
$this->setExpectedException('Predis\Distribution\EmptyRingException');
$this->setExpectedException('Predis\Cluster\Distribution\EmptyRingException');
$ring = $this->getDistributorInstance();
$ring->get('nodekey');