PHPUnit setUp to run for an individual test with dataProvider
<p>I have a PHPUnit test <code>testFoo()</code> with a dataProvider <code>fooProvider()</code>. At the beginning of <code>testFoo()</code> I'm using Runkit to redefine a method so I can test expected results when that method is returning what I've redefined it to return. However, redefining the method is a little time-intensive, so I'd like for it to only happen once for this test.</p>

<p>Does the PHPUnit framework provide functionality to specify code that I'd like to run just once before <code>testFoo()</code> runs and not once for each element returned by <code>fooProvider()</code> or once per test in the suite (as with <code>setUp()</code>)?</p>