Google\Cloud\Tests\NaturalLanguage\AnnotationTest::testGetSentiment PHP Method

testGetSentiment() public method

public testGetSentiment ( )
    public function testGetSentiment()
    {
        $this->assertEquals(1, $this->annotation->sentiment()['polarity']);
    }