Google\Cloud\Tests\Snippets\Speech\OperationTest::testReload PHP Method

testReload() public method

public testReload ( )
    public function testReload()
    {
        $snippet = $this->snippetFromMethod(Operation::class, 'reload');
        $snippet->addLocal('operation', $this->operation);
        $this->connection->getOperation(Argument::any())->shouldBeCalled()->willReturn($this->opData);
        $this->operation->setConnection($this->connection->reveal());
        $res = $snippet->invoke();
        $this->assertEquals(print_r($this->opData['response'], true), $res->output());
    }