Use local composer installation if available #3997

Merged
merged 1 commit into from Feb 24, 2017

Conversation

Projects
None yet
5 participants
@Naktibalda
Member

Naktibalda commented Feb 5, 2017

A popular cause of Codeception issues is incompatibility between locally installed dependency of the project and globally installed or packaged in phar file dependency of Codeception.

This is an attempt to eliminate one of the causes - when there is a local Codeception, but developer runs a globally installed version.

Example with phar file:

user@pc:~$ php codecept.phar 
Codeception 2.2.8
...

user@pc:~$ cd project
user@pc:~/project$ php ~/codecept.phar

==== Redirecting to Composer-installed version in vendor/codeception ====
Codeception version 2.2.6

Inspired by sebastianbergmann/phpunit@4fe95a5

@Naktibalda

This comment has been minimized.

Show comment
Hide comment
@Naktibalda

Naktibalda Feb 7, 2017

Member

@janhenkgerritsen please approve instead of giving thumbs up.

Member

Naktibalda commented Feb 7, 2017

@janhenkgerritsen please approve instead of giving thumbs up.

@robsch

This comment has been minimized.

Show comment
Hide comment
@robsch

robsch Feb 7, 2017

@Naktibalda I hope you accept my thumb ;-)

robsch commented Feb 7, 2017

@Naktibalda I hope you accept my thumb ;-)

@janhenkgerritsen janhenkgerritsen requested review from janhenkgerritsen and removed request for janhenkgerritsen Feb 7, 2017

@Naktibalda Naktibalda merged commit 82b4ef1 into Codeception:2.2 Feb 24, 2017

4 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
semaphoreci The build passed on Semaphore.
Details
wercker/build Wercker pipeline passed
Details

@Naktibalda Naktibalda deleted the Naktibalda:redirect-to-local-install branch Feb 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment