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 class loaded during data provider execution is not discovered #2833
Closed
kubawerlos opened this issue
Oct 29, 2017
· 4 comments
· Fixed by N0rthernL1ghts/eloquent-bootstrap#2 or Zemhart/project_UAS_PHP#20
Closed
Test class loaded during data provider execution is not discovered #2833
kubawerlos opened this issue
Oct 29, 2017
· 4 comments
· Fixed by N0rthernL1ghts/eloquent-bootstrap#2 or Zemhart/project_UAS_PHP#20
Comments
sebastianbergmann
changed the title
Calling reflection class for test class in data provider results with skipping execution of that test class.
Test class loaded during data provider execution is not discovered
Nov 10, 2017
So I use my test case from the first solution plus the test from #2859 (comment) and try again, right? |
Yes, please. |
at PHP CS Fixer, we come across this issue as well. it will be great to addition to have this solved! |
This was referenced Mar 15, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Having 2 test cases:
and
running them will result with executing only
ATest
.It's not even listed:
vendor/bin/phpunit --list-tests PHPUnit 6.4.3 by Sebastian Bergmann and contributors. Available test(s): - Tests\ATest::testNothingA#0
After removing
$a = new \ReflectionClass(BTest::class);
or moving this line totestNothingA
both classes will be executed. The problem is only with data provider.The text was updated successfully, but these errors were encountered: