I have following phpunit.xml file:
<phpunit bootstrap="Bootstrap.php" backupGlobals="false">
<testsuites>
<testsuite name="mentor">
<directory>../module/Api</directory>
<directory>../module/Application</directory>
<exclude>../vendor</exclude>
<exclude>vendor</exclude>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">../module</directory>
</whitelist>
</filter>
</phpunit>
file structure looks like this:
module
vendor
tests
-- phpunit.xml
-- Bootstrap.php
And now the tricky part. When I ran ../vendor/bin/php all works fine although if I ran global phpunit (/usr/local/bin/phpunit) it finishes with "no test executed" result. Any suggestions?
Aucun commentaire:
Enregistrer un commentaire