Skip to content

Commit 75ef77b

Browse files
GromNaNJibola
authored andcommitted
Install PHP dependencies in the project (mongodb-labs#213)
1 parent a21262a commit 75ef77b

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

integrations/php/composer.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

integrations/php/install-driver.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ php --ri mongodb
8080

8181
# Install composer and dependencies
8282
install_composer
83-
php composer.phar update
83+
php composer.phar update --working-dir=${PHPLIB_PATH}
8484

8585
# Allow simple-phpunit to install its own PHPUnit dependencies
86-
php vendor/bin/simple-phpunit install
86+
php ${PHPLIB_PATH}/vendor/bin/simple-phpunit install
87+
88+
# The symlink helps to include the library and tests with a simple path
89+
ln -s ${PHPLIB_PATH}/vendor ./vendor

0 commit comments

Comments
 (0)