Я не смог найти ничего подобного, и, полагаю, его не существует ..
class Test extends PHPUnit_Framework_TestCase {
public function setUp() {
echo $current_test; // Output a string "testOne"
}
public function testOne() {
// This is the first test; before this test is ran setUp() is called.
// The question is, is there any way to know within setUp() what the
// current test is?
}
}