define() 공개 정적인 메소드

Registers a new server profile.
public static define ( string $alias, string $class )
$alias string Profile version or alias.
$class string FQN of a class implementing Predis\Profile\ProfileInterface.
예제 #1
0
 /**
  * @group disconnected
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage The class 'stdClass' is not a valid profile class.
  */
 public function testDefineInvalidProfile()
 {
     Factory::define('bogus', 'stdClass');
 }