Skip to content
This repository was archived by the owner on Dec 29, 2020. It is now read-only.

Conversation

ricordisamoa
Copy link
Contributor

@ricordisamoa ricordisamoa commented Feb 27, 2017

  • Add development dependency on phpunit/phpunit ^6.0
  • Update composer.lock for PHPUnit only
  • Change .travis.yml to use PHPUnit in vendor directory
  • Put expected test results into a new directory

* Add development dependency on phpunit/phpunit ^6.0
* Update composer.lock for PHPUnit only
* Add test script to composer.json and use it in .travis.yml
* Put expected test results into a new directory
composer.json Outdated
"require-dev": {
"phpunit/phpunit": "^6.0"
},
"scripts": {
Copy link
Owner

Choose a reason for hiding this comment

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

Why not running phpunit directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding the Composer script allows to easily run the correct version of PHPUnit (but also other tools such as PHPCS, should they be added in the future) without installing anything globally or modifying the PATH. See: https://getcomposer.org/doc/articles/scripts.md#writing-custom-commands
Do you want me to drop the script? (In that case, would .travis.yml require the use of vendor/bin/phpunit to work with PHPUnit 6? I'm not sure)

Copy link
Owner

Choose a reason for hiding this comment

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

Yes I prefer this way (it doesn't pollute the composer.json file with CI related commands).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should be fine now.

@dunglas
Copy link
Owner

dunglas commented Feb 27, 2017

I just left a minor comment but it's awesome!! Thank you very much.

@ricordisamoa
Copy link
Contributor Author

Thank you for this tool and for the quick response.

@dunglas dunglas merged commit a5105e1 into dunglas:master Feb 27, 2017
@dunglas
Copy link
Owner

dunglas commented Feb 27, 2017

Thank you @ricordisamoa

@ricordisamoa
Copy link
Contributor Author

Thanks

@ricordisamoa ricordisamoa deleted the phpunit branch February 27, 2017 23:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants