-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test results of two methods in one test case may get mixed up #63
Comments
How do you run TestCase? |
He probably wasn't accepting the test method cli argument so the test case had been ran twice (because there are two methods) and in both cases, the test case ran both methods, so every time it ended with failure. (new SomeTest)->run(); vs (new SomeTest)->run(isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : NULL); |
@dg this way: $testCase->run(isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : NULL); but there could be something on the "test case ran both methods" thing, because i saw some testing data leaking from one method to another. and they should be isolated. i'll check it again |
@paranoiq I guess this happend when test was annoted by With current master, I cannot reproduce it by any combination. Could you try it again? |
ok, i am obviously an idiot. when i tried it again i finally find out what the problem was. i have disabled |
@paranoiq It has been fixed. Moreover, now you can forgot on it and run |
both fail with error
array() should be 3 in testBbb()
only when runned with test runner, not directly
the reason is, that both test methods produce expected and actual files with the same name
The text was updated successfully, but these errors were encountered: