Пример #1
0
 /**
  * Asserts that calling unknown methods on the consumer object results in
  * these being passed through to the internal queue object.
  *
  * @param string $method Method name
  * @param string $arg    Argument to pass
  *
  * @dataProvider CallSupplier
  */
 public function test__call($method, $arg)
 {
     $this->queue->expects($this->once())->method($method)->with($this->identicalTo($arg));
     $consumer = new Consumer($this->queue, $this->loop, 1);
     $consumer->{$method}($arg);
 }