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

XML <file> Tag Fails To Find File If Multi-line #2072

Closed
quantumpacket opened this issue Feb 11, 2016 · 0 comments
Closed

XML <file> Tag Fails To Find File If Multi-line #2072

quantumpacket opened this issue Feb 11, 2016 · 0 comments
Labels
type/bug Something is broken

Comments

@quantumpacket
Copy link

I spent a bit of time trying to find out why PHPUnit was not finding my test file, and it turns out it was due to the whitespace present from having the <file> tag on multiple lines. Putting it into a single line and the tests were found. I could not find such a requirement in the docs.

I'm guessing the value should be trimmed when it is being fetched (I believe it's this line). The multi-line format was not intentional and was done automatically by my IDE.

Finds File:

<testsuite name='Money'>
    <file>./tests/MoneyTest.php</file>
</testsuite>

Can't Find File:

<testsuite name='Money'>
    <file>
        ./tests/MoneyTest.php
    </file>
</testsuite>

When using multi-line it provides no error message and just says "No tests executed!".

PHPUnit 5.3.x-dev

@sebastianbergmann sebastianbergmann added the type/bug Something is broken label Feb 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants