This repository was archived by the owner on May 27, 2023. It is now read-only.
This repository was archived by the owner on May 27, 2023. It is now read-only.
PHP Fatal error: Class 'SebastianBergmann\Comparator\Factory' not found in lib/EcomDev/PHPUnit/AbstractConstraint.php on line 153 #224
Closed
Description
I tried to install it using composer,
I have found some workarounds,
but now I have another error:
PHP Fatal error: Class 'SebastianBergmann\Comparator\Factory' not found in lib/EcomDev/PHPUnit/AbstractConstraint.php on line 153
Here is what I do:
- add to composer json require section:
"firegento/psr0autoloader": "*", // maybe can solve SebastianBergmann\Comparator\Factory
"ecomdev/ecomdev_phpunit": "dev-dev",
"mikey179/vfsStream": "1.4.*"
-
run
composer update
-
copy vfsStream manually, because of vfsStream is not copied to lib directory magento-hackathon/magento-composer-installer#128
cp -rf vendor/mikey179/vfsStream/src lib/vfsStream/
-
add to
app/code/community/EcomDev/PHPUnit/bootstrap.php
to avoidCookies already sent
:
ini_set('session.use_cookies', 0);
ini_set('session.cache_limiter', '');
-
add phpunit.xml.dist (copy from EcomDev repo)
-
install ecomdev:
cd shell
php ecomdev-phpunit.php -a magento-config --db-name $DB_NAME --base-url http://your.magento.url/
php ecomdev-phpunit.php -a fix-autoloader
- run
phpunit
Metadata
Metadata
Assignees
Labels
No labels