I have a PHPUnit test case class (consisting of some test functions). I would like to write a oneTimeSetUp() function to be called once for all my tests in the clas
oneTimeSetUp()
The bootstrap option can be used on these cases.
bootstrap
You can call it from the command line
phpunit --bootstrap myBootstrap.php
Or put it in the XML file, like this:
...