Google\Cloud\Tests\Vision\Annotation\LikelihoodTraitTest::testLikelihoods PHP Method

testLikelihoods() public method

public testLikelihoods ( )
    public function testLikelihoods()
    {
        $t = new LikelihoodTraitStub();
        $this->assertTrue($t->l('VERY_LIKELY', FeatureInterface::STRENGTH_HIGH));
        $this->assertFalse($t->l('LIKELY', FeatureInterface::STRENGTH_HIGH));
        $this->assertFalse($t->l('POSSIBLE', FeatureInterface::STRENGTH_HIGH));
        $this->assertTrue($t->l('VERY_LIKELY', FeatureInterface::STRENGTH_MEDIUM));
        $this->assertTrue($t->l('LIKELY', FeatureInterface::STRENGTH_MEDIUM));
        $this->assertFalse($t->l('POSSIBLE', FeatureInterface::STRENGTH_MEDIUM));
        $this->assertTrue($t->l('VERY_LIKELY', FeatureInterface::STRENGTH_LOW));
        $this->assertTrue($t->l('LIKELY', FeatureInterface::STRENGTH_LOW));
        $this->assertTrue($t->l('POSSIBLE', FeatureInterface::STRENGTH_LOW));
    }
LikelihoodTraitTest