Predis\Profile\Factory::getDefault PHP Méthode

getDefault() public static méthode

Returns the default server profile.
public static getDefault ( ) : Predis\Profile\ProfileInterface
Résultat Predis\Profile\ProfileInterface
    public static function getDefault()
    {
        return self::get('default');
    }

Usage Example

 /**
  * @group disconnected
  */
 public function testConstructorStartsConsumer()
 {
     $cmdMonitor = Profile\Factory::getDefault()->createCommand('monitor');
     $connection = $this->getMock('Predis\\Connection\\NodeConnectionInterface');
     $client = $this->getMock('Predis\\Client', array('createCommand', 'executeCommand'), array($connection));
     $client->expects($this->once())->method('createCommand')->with('MONITOR', array())->will($this->returnValue($cmdMonitor));
     $client->expects($this->once())->method('executeCommand')->with($cmdMonitor);
     new MonitorConsumer($client);
 }
All Usage Examples Of Predis\Profile\Factory::getDefault