PHP Class Google\Cloud\Dev\Snippet\SnippetTestCase

Snippet test cases should extend this class.
Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: GoogleCloudPlatform/gcloud-php

Public Methods

Method Description
__construct ( )
snippetFromClass ( string $class, string | integer $indexOrName ) : Snippet Retrieve a snippet from a class-level docblock.
snippetFromMagicMethod ( string $class, string $method, string | integer $indexOrName ) : Snippet Retrieve a snippet from a magic method docblock (i.e. @method tag nexted inside a class-level docblock).
snippetFromMethod ( string $class, string $method, string | integer $indexOrName ) : Snippet Retrieve a snippet from a method docblock.

Method Details

__construct() public method

public __construct ( )

snippetFromClass() public method

Retrieve a snippet from a class-level docblock.
public snippetFromClass ( string $class, string | integer $indexOrName ) : Snippet
$class string The class name.
$indexOrName string | integer The index of the snippet, or its name.
return Snippet

snippetFromMagicMethod() public method

Retrieve a snippet from a magic method docblock (i.e. @method tag nexted inside a class-level docblock).
public snippetFromMagicMethod ( string $class, string $method, string | integer $indexOrName ) : Snippet
$class string The class name
$method string The method name
$indexOrName string | integer The index of the snippet, or its name.
return Snippet

snippetFromMethod() public method

Retrieve a snippet from a method docblock.
public snippetFromMethod ( string $class, string $method, string | integer $indexOrName ) : Snippet
$class string The class name
$method string The method name
$indexOrName string | integer The index of the snippet, or its name.
return Snippet