Google\Cloud\Tests\Snippets\Vision\Annotation\EntityTest::testScore PHP Method

testScore() public method

public testScore ( )
    public function testScore()
    {
        $snippet = $this->snippetFromMagicMethod(Entity::class, 'score');
        $snippet->addLocal('text', $this->entity);
        $res = $snippet->invoke();
        $this->assertEquals($this->entityData['score'], $res->output());
    }