Google\Cloud\Tests\Snippets\BigQuery\JobTest::testIsComplete PHP Метод

testIsComplete() публичный Метод

public testIsComplete ( )
    public function testIsComplete()
    {
        $this->connection->getJob(Argument::any())->shouldBeCalledTimes(1)->willReturn(['status' => ['state' => 'DONE']]);
        $job = $this->getJob($this->connection, ['status' => ['state' => 'PENDING']]);
        $snippet = $this->snippetFromMethod(Job::class, 'isComplete');
        $snippet->addLocal('job', $job);
        $snippet->replace('sleep(1);', '');
        $snippet->invoke();
    }