vendredi 25 mai 2018

How to ignore code during a PHPUnit Test

I am creating unit tests in php.
There is one line in the code under test which generates a random number and assigns it to property of an object. This object is then compared as an assertion.

Because of this, I cannot get the test to pass, so I'm wondering; is there a way to ignore this line with any compiler variable or similar?

Any help is greatly appreciated.

Aucun commentaire:

Enregistrer un commentaire