Closed kublaios closed 9 years ago
Hi,
I've just added support for this. The plugin will now look for vendor/bin/phpunit, and use that if it is present.
I've also just fixed a bug where the plugin could end up using the wrong phpunit.xml[.dist] file. Chances are that this bug was causing your problem.
Can you let me know if you still have problems after updating, please?
Best regards, Stu
Hi all,
I'm following this tutorial to get the PHPUnit running: https://jtreminio.com/2013/03/unit-testing-tutorial-part-2-assertions-writing-a-useful-test-and-dataprovider/
For a simple start, I've declared just a class and its tester. As it was told in the tutorial (part 1), I have installed PHPUnit via Composer. My tests work just fine when I use the PHPUnit like:
However, when I try to run tests from Sublime Text 3 command palette or like
$ phpunit
, I get the following error:No errors when I include the class file with
require_once
.Global instance of PHPUnit is under
/usr/local/bin
. Is there a way to force the plugin to usephpunit
command from the project root, like/vendor/bin/phpunit
?