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()
Take a look at setUpBeforeClass() from section 6 of the PHPUnit documentation.
setUpBeforeClass()
For the one time tearDown you should use tearDownAfterClass();.
tearDownAfterClass();
Both this methods should be defined in your class as static methods.