Google\Cloud\Tests\NaturalLanguage\NaturalLanguageClientTest::testAnalyzeSyntax PHP Method

testAnalyzeSyntax() public method

public testAnalyzeSyntax ( $options, $expectedOptions )
    public function testAnalyzeSyntax($options, $expectedOptions)
    {
        $content = $options['content'];
        unset($options['content']);
        $this->connection->analyzeSyntax($expectedOptions)->willReturn([])->shouldBeCalledTimes(1);
        $this->client->setConnection($this->connection->reveal());
        $annotation = $this->client->analyzeSyntax($content, $options);
        $this->assertInstanceOf(Annotation::class, $annotation);
    }