I have a script to deploy my application that install my application with composer, with the option --optimize-autoloader enabled. However, the dist package of ZF 2 does not include tests folder, so composer throw an exception as it tries to create the classmap from an unknown folder, which make the process fails.
The only solution is to add --prefer-source option so that the whole package with tests is loaded, but as we don't ship tests, it's better to remove this in the composer.json file.
Remove ZendTest from composer.json
unit tests are not running now.
@bakura10 I think that we have to add something to the tests/_autoload.php to autoload class files under the tests/ZendTest/ path (particularly for test assets, which PHPUnit will not autodiscover).
@bakura10 it would be great to get your input on this composer PR: composer/composer#1857 It would fix this problem not just for zf2, but every other composer package.
@bakura10 An additional change needs to be made -- essentially, the if/then has to be removed from tests/_autoload.php, and simply promote the code in the else statement. Once that's done, we can merge the composer.json changes.
Oops… done :D. Sorry for the delay :D.
Replaced by: #4744