Closed adri closed 11 years ago
Help me understand this a bit more, please? Why would you have the unit tests in the same file as the code that you're testing?
Sorry, probably I didn't explain well enough what it does.
I wanted a command which runs a test no matter if I'm on the test file or on the file which is being tested. Does that make sense?
The test and the class under test are still in separate files.
On 11.05.2013, at 16:53, Stuart Herbert notifications@github.com wrote:
Help me understand this a bit more, please? Why would you have the unit tests in the same file as the code that you're testing?
— Reply to this email directly or view it on GitHub.
I've just pushed an update which I think achieves what you want. Have a look at the new phpunit_run_tests command, and let me know if that does the trick.
Beautiful, thanks a lot!
phpunit_test_this_class
command runs now also on test files (not only on classes).