jeudi 30 juillet 2015

PHPUnit ingore code execute'ion

I have some var_dumps in my php code (i understand what there must be none in the end, but still), and while tests are running they outputs non necessary information to console, is there a method to ignore some code execution?

I've tried

/**
 * @codeCoverageIgnore
 */

and

// @codeCoverageIgnoreStart
print '*';
// @codeCoverageIgnoreEnd

But this just ignores coverage, and still executes the code.

Aucun commentaire:

Enregistrer un commentaire