on-internet
← Community

Getting the test that is executing in `setUp` [duplicate]

Stack Overflow ·

Is there a way to get the test that is about to be executed (the actual Function name) inside setUp() in PHPUnit? I know that I can put the code inside the test function itself instead of setUp(), but I have created some Abstract Test Cases and since setUp() takes a long time to execute, I want to be able skip unnecessary actions or even tests inside setUp().

Comments

Sign in or sign up to comment and upvote.

No comments yet.