Google\Cloud\Tests\Logging\Connection\GrpcTest::testCallBasicMethods PHP Method

testCallBasicMethods() public method

public testCallBasicMethods ( $method, $args, $expectedArgs )
    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));
    }