Google\Cloud\Tests\Snippets\Vision\AnnotationTest::testLandmarks PHP Method

testLandmarks() public method

public testLandmarks ( )
    public function testLandmarks()
    {
        $snippet = $this->snippetFromMethod(Annotation::class, 'landmarks');
        $snippet->addLocal('annotation', new Annotation(['landmarkAnnotations' => [[]]]));
        $res = $snippet->invoke('landmarks');
        $this->assertInstanceOf(Entity::class, $res->returnVal()[0]);
    }