PHPUnitUtil

Various utility functions

author

Michiel Rook [email protected]

version

$Id: 3057ba513f9c958affc0d4c3821f831451f792e1 $

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

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 [email protected]

Arguments

$classname

string

the name of the class

Response

string|null

the name of the subpackage

Properties

definedClasses

definedClasses : 
static

Type(s)