Google\Cloud\Tests\Vision\VisionClientTest::testAnnotateBatch PHP Method

testAnnotateBatch() public method

public testAnnotateBatch ( )
    public function testAnnotateBatch()
    {
        $image = $this->client->image('foobar', ['FACE_DETECTION']);
        $this->connection->annotate(Argument::any())->willReturn(['responses' => [[], []]]);
        $this->client->setConnection($this->connection->reveal());
        $res = $this->client->annotateBatch([$image]);
        $this->assertTrue(is_array($res));
        $this->assertInstanceOf(Annotation::class, $res[0]);
        $this->assertInstanceOf(Annotation::class, $res[1]);
    }