PHPUnitUtil

Various utility functions

author

Michiel Rook mrook@php.net

version

$Id: b33e197d709f1c1ea159f03c5a2f9d3ae982b57f $

package

phing.tasks.ext.phpunit

since 2.1.0

Methods

Derives the classname from a filename.

getClassFromFileName( $filename) : string
static

Assumes that there is only one class defined in that particular file, and that the naming follows the dot-path (Java) notation scheme.

Arguments

$filename

Response

string

the name fo the class

getDefinedClasses

getDefinedClasses( $filename,  $classpath = NULL) : array
static

Arguments

$filename

$classpath

Response

array

list of classes defined in the file

Returns the package of a class as defined in the docblock of the class using @package

getPackageName( $classname) : string
static

Arguments

$classname

Response

string

the name of the package

Returns the subpackage of a class as defined in the docblock of the class using @subpackage

getSubpackageName(string $classname) : string|null
static
author

Benjamin Schultz bschultz@proqrent.de

Arguments

$classname

string

the name of the class

Response

string|null

the name of the subpackage

Properties

definedClasses

definedClasses : 
static

Type(s)