Google\Cloud\Tests\Snippets\BigQuery\JobTest::testQueryResults PHP Method

testQueryResults() public method

public testQueryResults ( )
    public function testQueryResults()
    {
        $this->connection->getQueryResults(Argument::any())->shouldBeCalledTimes(1)->willReturn([]);
        $job = $this->getJob($this->connection);
        $snippet = $this->snippetFromMethod(Job::class, 'queryResults');
        $snippet->addLocal('job', $job);
        $res = $snippet->invoke('queryResults');
        $this->assertInstanceOf(QueryResults::class, $res->returnVal());
    }