Coverage
class Coverage
Properties
| protected string | $path | The path that PHPUnit should write serialized coverage data to. |
Methods
__construct()
Create a new coverage reporter.
static bool
isAvailable()
Determine whether code coverage can be collected.
static bool
usingXdebug()
Determine whether Xdebug is the active coverage driver.
string
path()
Get the path for serialized coverage data.
float
report(OutputInterface $output)
Render the coverage report and return line coverage percentage.
void
cleanup()
Remove temporary coverage data.
Details
at line 23
__construct()
Create a new coverage reporter.
at line 32
static bool
isAvailable()
Determine whether code coverage can be collected.
at line 40
static bool
usingXdebug()
Determine whether Xdebug is the active coverage driver.
at line 48
string
path()
Get the path for serialized coverage data.
at line 56
float
report(OutputInterface $output)
Render the coverage report and return line coverage percentage.
at line 75
void
cleanup()
Remove temporary coverage data.