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

Cannot make work PHPUnit 6 #802

Closed
jawira opened this issue Nov 1, 2017 · 2 comments
Closed

Cannot make work PHPUnit 6 #802

jawira opened this issue Nov 1, 2017 · 2 comments
Milestone

Comments

@jawira
Copy link
Contributor

jawira commented Nov 1, 2017

Hello, I'm having some trouble making work PHPUnit6 with Phing.

Everything works well if I execute PHPUnit from command line:

> php .\phpunit-6.4.3.phar --bootstrap .\vendor\autoload.php .\tests\ConvertTest.php
...
Tests: 22, Assertions: 22, Failures: 3.

But when I use Phing it doesn't work:

> phing test
Buildfile: D:\jawi\PhpstormProjects\case-converter\build.xml

Case Converter > test:

  [phpunit] Total tests run: 0, Failures: 0, Errors: 0, Incomplete: 0, Skipped: 0, Time elapsed: 0.00317 s

BUILD FINISHED

Total time: 0.3051 seconds

The target:

    <target name="test">

        <mkdir dir="resources/reports"/>

        <phpunit pharlocation="phpunit-6.4.3.phar" bootstrap="vendor/autoload.php" printsummary="true">
            <formatter todir="resources/reports" type="xml"/>
            <batchtest>
                <fileset dir="tests">
                    <include name="**/*Test.php"/>
                </fileset>
            </batchtest>
        </phpunit>
    </target>

Any help would be appreciated 🙏

@mrook
Copy link
Member

mrook commented Nov 13, 2017

Can you test #804 ?

@mrook
Copy link
Member

mrook commented Nov 22, 2017

#804 has been merged, closing this issue - if there are more phpunit 6 problems, please re-open or start a new issue.

@mrook mrook closed this as completed Nov 22, 2017
@mrook mrook added this to the 3.0 milestone Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants