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.
string
the filename
string
the name fo the classgetDefinedClasses(string $filename, \Path $classpath) : array
string
the filename
array
list of classes defined in the filegetPackageName(string $classname) : string
string
the name of the class
string
the name of the packagegetSubpackageName(string $classname) : string | null
author | Benjamin Schultz |
---|
string
the name of the class
string
null
the name of the subpackage$definedClasses