Sylius/SyliusAssortmentBundle — Issue #1: Getting started on SyliusAssortmentBundle contribution
Author: umpirsky
Created: 2012-01-24 14:43:16+00:00
State: open

I cloned this bundle, and tried to run tests.

`
$phpunit
PHP Warning: require_once(/home/umpirsky/Projects/PHP/symfony-bundles/SyliusAssortmentBundle/Tests/../vendor/symfony/src/Symfony/Component/ClassLoader/UniversalClassLoader.php): failed to open stream: No such file or directory in /home/umpirsky/Projects/PHP/symfony-bundles/SyliusAssortmentBundle/Tests/autoload.php.dist on line 10
PHP Stack trace:
PHP 1. {main}() /usr/bin/phpunit:0
PHP 2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:44
PHP 3. PHPUnit_TextUI_Command->run() /usr/share/php/PHPUnit/TextUI/Command.php:125
PHP 4. PHPUnit_TextUI_Command->handleArguments() /usr/share/php/PHPUnit/TextUI/Command.php:134
PHP 5. PHPUnit_TextUI_Command->handleBootstrap() /usr/share/php/PHPUnit/TextUI/Command.php:658
PHP 6. PHPUnit_Util_Fileloader::checkAndLoad() /usr/share/php/PHPUnit/TextUI/Command.php:837
PHP 7. PHPUnit_Util_Fileloader::load() /usr/share/php/PHPUnit/Util/Fileloader.php:79
PHP 8. include_once() /usr/share/php/PHPUnit/Util/Fileloader.php:95
PHP 9. require_once() /home/umpirsky/Projects/PHP/symfony-bundles/SyliusAssortmentBundle/Tests/bootstrap.php:15
PHP Fatal error: require_once(): Failed opening required '/home/umpirsky/Projects/PHP/symfony-bundles/SyliusAssortmentBundle/Tests/../vendor/symfony/src/Symfony/Component/ClassLoader/UniversalClassLoader.php' (include_path='.:/usr/share/php:/home/umpirsky/Projects/PHP/Phantom/svn.loopia.se/xapi:/usr/share/php/PEAR') in /home/umpirsky/Projects/PHP/symfony-bundles/SyliusAssortmentBundle/Tests/autoload.php.dist on line 10
PHP Stack trace:
PHP 1. {main}() /usr/bin/phpunit:0
PHP 2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:44
PHP 3. PHPUnit_TextUI_Command->run() /usr/share/php/PHPUnit/TextUI/Command.php:125
PHP 4. PHPUnit_TextUI_Command->handleArguments() /usr/share/php/PHPUnit/TextUI/Command.php:134
PHP 5. PHPUnit_TextUI_Command->handleBootstrap() /usr/share/php/PHPUnit/TextUI/Command.php:658
PHP 6. PHPUnit_Util_Fileloader::checkAndLoad() /usr/share/php/PHPUnit/TextUI/Command.php:837
PHP 7. PHPUnit_Util_Fileloader::load() /usr/share/php/PHPUnit/Util/Fileloader.php:79
PHP 8. include_once() /usr/share/php/PHPUnit/Util/Fileloader.php:95
PHP 9. require_once() /home/umpirsky/Projects/PHP/symfony-bundles/SyliusAssortmentBundle/Tests/bootstrap.php:15
`

Why it expects Symfony under the bundle?

https://github.com/Sylius/SyliusAssortmentBundle/blob/master/Tests/autoload.php.dist#L9 says `$vendorDir = __DIR__.'/../vendor';`. Shouldn't it be `$vendorDir = __DIR__.'/../../vendor';` ?