Наследование: implements Google\Cloud\Logging\Connection\ConnectionInterface, use trait Google\Cloud\GrpcTrait
Пример #1
0
 /**
  * @dataProvider methodProvider
  */
 public function testCallBasicMethods($method, $args, $expectedArgs)
 {
     $this->requestWrapper->send(Argument::type('callable'), $expectedArgs, Argument::type('array'))->willReturn($this->successMessage);
     $grpc = new Grpc();
     $grpc->setRequestWrapper($this->requestWrapper->reveal());
     $this->assertEquals($this->successMessage, $grpc->{$method}($args));
 }