count() 공개 메소드

Returns the number of command processors in the chain.
public count ( ) : integer
리턴 integer
 /**
  * @group disconnected
  */
 public function testCountProcessors()
 {
     $processors = array($this->getMock('Predis\\Command\\Processor\\ProcessorInterface'), $this->getMock('Predis\\Command\\Processor\\ProcessorInterface'));
     $chain = new ProcessorChain($processors);
     $this->assertEquals(2, $chain->count());
 }