sebastianbergmann/phpunit — Issue #408: option --coverage-text syntax issue
Author: llaville
Created: 2011-11-13 14:57:52+00:00
State: open

I've just upgraded my local copy from PHPUnit 3.5.15 to 3.6.3 and try the new option --coverage-text on Windows platform.

I think there are an inconsistance syntax with options:

For example, if I use the --bootstrap, it's not mandatory to specify equal sign like

--bootstrap=c:\path\to\boot_file.php

While with --coverage-text it seems that the equal sign is mandatory.

Example that run fine :

phpunit --bootstrap c:\PHP_Reflect_NS\PHP\Reflect\Autoload.php --coverage-text=c:\php\cover.txt .

Example that raise an issue :

phpunit --bootstrap c:\PHP_Reflect_NS\PHP\Reflect\Autoload.php --coverage-text c:\php\cover.txt .

Here are STDOUT results I got

Code Coverage Report
2011-11-13 15:47:17

Summary:
Classes: 0.63% (1/158)
Methods: 21.62% (8/37)
Lines: 17.97% (184/1024)

@PHP.Reflect.Token::PHP_Reflect_Token_FUNCTION
Methods: 75.00% ( 3/ 4) Lines: 50.50% ( 51/101)
@PHP.Reflect.Token::PHP_Reflect_Token_Globals
Methods: 100.00% ( 2/ 2) Lines: 100.00% ( 27/ 27)
@PHP.Reflect.Token::PHP_Reflect_Token_INTERFACE
Methods: 71.43% ( 5/ 7) Lines: 38.67% ( 29/ 75)
@PHP.Reflect.Token::PHP_Reflect_Token_Includes
Methods: 100.00% ( 2/ 2) Lines: 89.47% ( 17/ 19)
@PHP.Reflect.Token::PHP_Reflect_Token_NAMESPACE
Methods: 100.00% ( 1/ 1) Lines: 66.67% ( 6/ 9)
@PHP.Reflect::PHP_Reflect_Token
Methods: 33.33% ( 1/ 3) Lines: 14.29% ( 1/ 7)
@PHP.Reflect::PHP_Reflect_TokenWithScope
Methods: 80.00% ( 4/ 5) Lines: 49.53% ( 53/107)PHPUnit 3.6.3 by Sebastian
Bergmann.

Class c:\php\cover could not be found in C:\php\cover.txt.