Google\Cloud\Tests\Snippets\Vision\AnnotationTest::testSafeSearch PHP Méthode

testSafeSearch() public méthode

public testSafeSearch ( )
    public function testSafeSearch()
    {
        $snippet = $this->snippetFromMethod(Annotation::class, 'safeSearch');
        $snippet->addLocal('annotation', new Annotation(['safeSearchAnnotation' => []]));
        $res = $snippet->invoke('safeSearch');
        $this->assertInstanceOf(SafeSearch::class, $res->returnVal());
    }