classes/phing/tasks/ext/phpunit/PHPUnitUtil.php
Various utility functions
- author
- Michiel Rook
- package
- phing.tasks.ext.phpunit
- since
- 2.1.0
- version
- $Id: PHPUnitUtil.php 792 2010-06-24 12:56:45Z mrook $
Properties
Methods



getClassFromFileName(
string $filename
)
:
string
staticDerives the classname from a filename.
Assumes that there is only one class defined in that particular file, and that
the naming follows the dot-path (Java) notation scheme.
Parameters
| Name |
Type |
Description |
| $filename |
string |
the filename |
Returns



getDefinedClasses(
string $filename, \Path $classpath
=
NULL
)
:
arraystatic
Parameters
| Name |
Type |
Description |
| $filename |
string |
the filename |
| $classpath |
\Path |
optional classpath |
Returns



getPackageName(
string $classname
)
:
string
staticReturns the package of a class as defined in the docblock of the class using @package
Parameters
| Name |
Type |
Description |
| $classname |
string |
the name of the class |
Returns



getSubpackageName(
string $classname
)
:
string|null
staticReturns the subpackage of a class as defined in the docblock of the class
using @subpackage
Parameters
| Name |
Type |
Description |
| $classname |
string |
the name of the class |
Returns
| Type |
Description |
| stringnull |
|
Details
- author
- Benjamin Schultz