diff --git a/integrations/php/composer.json b/integrations/php/composer.json deleted file mode 100644 index a14249cd..00000000 --- a/integrations/php/composer.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "repositories": [ - { "type": "path", "url": "$PHPLIB_PATH" } - ], - "require": { - "php": "^7.3 || ^8.0", - "mongodb/mongodb": "@dev", - "symfony/phpunit-bridge": "^5.2" - }, - "autoload": { - "psr-4": { "MongoDB\\Tests\\": "vendor/mongodb/mongodb/tests" }, - "files": [ "vendor/mongodb/mongodb/tests/PHPUnit/Functions.php" ] - } -} diff --git a/integrations/php/install-driver.sh b/integrations/php/install-driver.sh index 858b9a16..960082c6 100755 --- a/integrations/php/install-driver.sh +++ b/integrations/php/install-driver.sh @@ -80,7 +80,10 @@ php --ri mongodb # Install composer and dependencies install_composer -php composer.phar update +php composer.phar update --working-dir=${PHPLIB_PATH} # Allow simple-phpunit to install its own PHPUnit dependencies -php vendor/bin/simple-phpunit install +php ${PHPLIB_PATH}/vendor/bin/simple-phpunit install + +# The symlink helps to include the library and tests with a simple path +ln -s ${PHPLIB_PATH}/vendor ./vendor