I'm working with an Enterprise Edition 1.13.1 install (although Community Edition would have the same issue), and we're installing dependencies via composer where they're available. I've installed Ivan's Ecomdev_PhpUnit extension via composer which has bought in all of the normal phpunit dependencies. I've also copied phpunit.xml.dist from vendor/ivanchepurnyi/ecomdev_phpunit into my projects root directory.
When I first ran my unit tests, I received the following error:
The test was skipped, since vfsStream component is not installed. Try install submodules required for this functionality
I've subsequently added the following require-dev entry to
composer.json and run
However, PHPUnit still complains that vfsStream isn't installed.
Looking through the GitHub repository for the Ecomdev_PHPUnit extension it looks like a patch has been merged to allow libvsfstream to be autoloaded when composer is used. However, this seems like a partial solution as the composer autoloader isn't included anywhere, so the class_exists call still fails.
I can edit /vendor/ivanchepurnyi/ecomdev_phpunit/app/code/community/EcomDev/PHPUnit/bootstrap.php:41 to include the composer autoloader during the bootstrap (or copy the bootstrap.php to another location in my project and edit that). Is this the best solution to this problem, or is there a feature in either Composer or Ecomdev_PhpUnit that I'm missing?