php - PHPUnit codecoverage halts without reporting any error -


when executing phpunit codecoverage, coverage generating halts without error, , no report generated.

the problem caused fatal error in 1 file, it's hard find error without error showing up.

i have confirmed display_errors on, , have set error_reporting -1 in php.ini

after testing excluding files coverage, have found file in error, , error (class not implementing inherited abstract methods), have gone faster if had actual error.

the problem in phpunit config being used.

i had set error reporting this:

<php>     <ini name="error_reporting" value="e_all & ~e_strict" /> </php> 

i thought should work, appears can provide constants (e_all) or literal values, not expressions that. config set error_reporting 'e_all & ~e_strict', instead of correct numeric value, causing errors muted.

i have solved setting error_reporting in phpunit bootstrap file.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -