Scan a directory for files, a set of files for classes, and a set of classes
for code snippets.

  • experimental
  • internal
CloneableInstantiable
ImplementsGoogle\Cloud\Core\Testing\Snippet\Coverage\ScannerInterface
Methods
public __construct(Google\Cloud\Core\Testing\Snippet\Parser\Parser $parser, $basePath, array $exclude = [])
 
  • experimental
  • internal
public classes(array $files, array $exclude = [])
 

Retrieve a list of classes in the given PHP files.

  • return string[]
  • experimental
  • internal
public files()
 

Retrieve a list of PHP files to scan.

  • return string[]
  • experimental
  • internal
public snippets(array $classes)
 

Get a list of all snippets from the given classes.

  • return Google\Cloud\Core\Testing\Snippet\Parser\Snippet[]
  • experimental
  • internal
  • throws ReflectionException
Properties
protected $parser
 
  • var Parser
Properties
private $basePath
 
  • var array
private $exclude
 
  • var array
Methods
private checkExclude( $className, array $exclude)
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only