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

testAnnotate() public method

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