Getting phpunit to work with zend framework2

I am working on a Zend Framework2 tutorial and I am at the very end of this (getting phpunit works):

http://framework.zend.com/manual/2.1/en/user-guide/unit-testing.html

I included "phpunit / phpunit": "3.7. *" In my composer.json file, updated it, and it looks like it was installed in the "Provider" directory of my project.

How can i use it now? I am on a Mac. I am in this part: Finally, cd to zf-tutorial / module / Application / test / and runs phpunit. Because I don't have phpunit installed in my $ PATH, which file do I use as an executable? Any help would be greatly appreciated.

Here is my folder structure. enter image description here

+4
source share
1 answer

The command you must run to use phpunit when installing through the composer, ./vendor/bin/phpunit

You can learn more about how the composer processes binary files at http://getcomposer.org/doc/articles/vendor-binaries.md

+2
source

All Articles