Google\Cloud\Tests\Snippets\Translate\TranslateClientTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        $this->connection = $this->prophesize(ConnectionInterface::class);
        $this->client = new \TranslateClientStub();
        $this->client->setConnection($this->connection->reveal());
    }