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 class (unlike the standard setUp()
function which is called once for each test in the class). In other words, I'm looking for a PHPUnit equivalent to the JUnit @BeforeClass
annotation.
Same question with a oneTimeTearDown()
function.
Is it possible to do so in PHPUnit?