title: PHPUnit: How do I create a function to be called once for all the tests in a class?
body: <p>I have a PHPUnit test case class (consisting of some test functions). I would like to write a <code>oneTimeSetUp()</code> function to be called once for all my tests in the class (unlike the standard <code>setUp()</code> function which is called once for each test in the class). In other words, I'm looking for a PHPUnit equivalent to the <a href="http://junit.sourceforge.net/javadoc/org/junit/BeforeClass.html">JUnit <code>@BeforeClass</code> annotation</a>.</p>
  
  <p>Same question with a <code>oneTimeTearDown()</code> function.</p>
  
  <p>Is it possible to do so in PHPUnit?</p>