Various utility functions
| author | Michiel Rook |
|---|---|
| version | $Id: c569f96e625ed8f9c6ae5add2b2f4a0a6c3e5a54 $ |
| package | phing.tasks.ext.phpunit |
| since | 2.1.0 |
getClassFromFileName(string $filename) : string
Assumes that there is only one class defined in that particular file, and that the naming follows the dot-path (Java) notation scheme.
stringthe filename
stringthe name fo the classgetDefinedClasses(string $filename, \Path $classpath) : array
stringthe filename
arraylist of classes defined in the filegetPackageName(string $classname) : string
stringthe name of the class
stringthe name of the packagegetSubpackageName(string $classname) : string | null
| author | Benjamin Schultz |
|---|
stringthe name of the class
stringnullthe name of the subpackage$definedClasses