Skip to content
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

Always use reflection to check class filename #13

Merged
merged 1 commit into from
Jul 3, 2020

Conversation

BrianHenryIE
Copy link
Contributor

@BrianHenryIE BrianHenryIE commented Mar 23, 2020

I am using WP_Mock and all failures were returning the path as vendor/10up/wp_mock/php/WP_Mock/Tools/TestCase.php:307 which is the file for the class that my test cases extend (example).

I've changed the code to use the path from getReflectionFromTest() as the definitive path, but to only overwrite the line number if the initial path was incorrect.

But use the original line if the path was already correct.
@mheap mheap merged commit cce752a into mheap:master Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants