Google\Cloud\Tests\Vision\Annotation\LikelihoodTraitTest::testLikelihoods PHP 메소드

testLikelihoods() 공개 메소드

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