PHPUnit: How do I create a function to be called once for all my tests

Take a look at setUpBeforeClass().

For the one time tearDown you should use tearDownAfterClass();.

Both this methods should be defined in your class as static methods.