Skip to content

Add integration tests for ODM features #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

mcfedr
Copy link
Contributor

@mcfedr mcfedr commented Feb 12, 2019

Same as #39 but without extra composer deps

Had to leave 'config.mongodb' in composer json so that it would allow installing doctrine-odm

@mcfedr
Copy link
Contributor Author

mcfedr commented Feb 12, 2019

The travis job has failed because of some travis issue, but you can see in the php 7.1 job that it passes.

@ondrejmirtes
Copy link
Member

Please rebase on top of master, it conflicts now.

lcobucci and others added 3 commits February 12, 2019 15:49
With the necessary dependencies on Travis-CI to ensure the build will
run properly.

Following the same approach as
https://github.com/doctrine/mongodb/blob/1.6.3/.travis.yml#L61 (for PHP
7+ installation).
@mcfedr mcfedr force-pushed the add-integration-tests-for-odm-features branch from c7fd1f9 to 6f83452 Compare February 12, 2019 13:53
},
"config": {
"platform": {
"ext-mongo": "1.6.16"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doctrine/mongodb-odm requires ext-mongo, this tells composer that its installed, even though it isnt, and allows odm to be installed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other option is to run composer install with --ignore-platform-reqs, if you think thats better @ondrejmirtes ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can leave this in :)

@mcfedr mcfedr mentioned this pull request Feb 12, 2019
@ondrejmirtes ondrejmirtes merged commit 3503bd7 into phpstan:master Feb 12, 2019
@ondrejmirtes
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants