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

analyzeDataProvider() public method

public analyzeDataProvider ( )
    public function analyzeDataProvider()
    {
        $objectMock = $this->prophesize(StorageObject::class);
        $objectMock->identity(Argument::any())->willReturn(['bucket' => 'bucket', 'object' => 'object']);
        return [[['content' => 'My content.', 'type' => 'HTML', 'language' => 'es', 'encodingType' => 'UTF16'], ['document' => ['content' => 'My content.', 'type' => 'HTML', 'language' => 'es'], 'encodingType' => 'UTF16']], [['content' => $objectMock->reveal()], ['document' => ['gcsContentUri' => 'gs://bucket/object', 'type' => 'PLAIN_TEXT'], 'encodingType' => 'UTF8']]];
    }