Skip to content

Enhancement: Require more recent phpunit/phpunit #174

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
merged 1 commit into from
Feb 17, 2016

Conversation

localheinz
Copy link
Contributor

This PR

  • updates the phpunit/phpunit requirement to have a more recent version of it installed

@bighappyface
Copy link
Collaborator

@localheinz thoughts on the TravisCI failures? Perhaps the legacy hardware is part of the issue?

@@ -40,8 +40,8 @@
},
"require-dev": {
"json-schema/JSON-Schema-Test-Suite": "1.1.0",
"phpunit/phpunit": "~3.7",
"phpdocumentor/phpdocumentor": "~2"
"phpdocumentor/phpdocumentor": "~2",
Copy link
Contributor

Choose a reason for hiding this comment

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

^2.0 or something would be better here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@GrahamCampbell

The change here is only related to requiring phpunit/phpunit with

$ composer require --dev --sort-packages phpunit/phpunit:^4.7.7

"phpunit/phpunit": "~3.7",
"phpdocumentor/phpdocumentor": "~2"
"phpdocumentor/phpdocumentor": "~2",
"phpunit/phpunit": "^4.7"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@GrahamCampbell

Requiring phpunit/phpunit without any version constraint yields to what you can see here now!

Copy link
Contributor

Choose a reason for hiding this comment

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

Requiring phpunit/phpunit without any version constraint yields to what you can see here now!

^4.0 would be fine?

@localheinz
Copy link
Contributor Author

@GrahamCampbell
Copy link
Contributor

Requiring phpunit/phpunit without any version constraint yields to what you can see here now!

I never suggested that...

@localheinz
Copy link
Contributor Author

@bighappyface

Builds still fail trying to update composer. Workaround could be to check in composer.phar and use it for installing dependencies on Travis (given that still works).

See https://www.traviscistatus.com:

Update - Our backlog for private repositories builds on the Linux container infrastructure has been caught up at this time.
We are continuing to investigate the network timeouts that we saw with some builds.
Jul 20, 19:15 UTC

Identified - We're adding additional capacity to the Linux container infrastructure for private repositories to help with the backlog.
We are still investigating why network connections are timing out and failing for connections to things like Github and RubyGems
Jul 20, 19:02 UTC

Investigating - We are actively investigating network timeouts and a spike in delayed builds on our Linux container infrastructure.
Jul 20, 18:32 UTC

@localheinz localheinz force-pushed the feature/phpunit branch 3 times, most recently from 3297ad6 to 8806398 Compare July 21, 2015 12:38
@bighappyface
Copy link
Collaborator

+1

It looks like the PHP 5.3.x Travis builds are the only ones failing now, and they are still exhibiting the man in the middle issue. I am good with the builds as is, and I am good with the upgrade for PHPUnit.

@GrahamCampbell are you okay with the latest?

@@ -18,7 +18,7 @@ before_install:
- composer selfupdate
Copy link
Contributor

Choose a reason for hiding this comment

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

This command should be removed.

@localheinz
Copy link
Contributor Author

@bighappyface

Do you want to take a look again?

@bighappyface
Copy link
Collaborator

@localheinz thanks for the reminder. While I am all about the update I recently encountered a some issues with changing versions of dependencies, even dev dependencies. Are there major updates in PHPunit 4.x dependencies that we may need to be concerned with? I would hate for this update to conflict with user installs and we would probably need to consider a minor bump.

@bighappyface
Copy link
Collaborator

@localheinz

I have compared the phpunit dependencies between versions and I think we are probably safe:

https://packagist.org/packages/phpunit/phpunit#3.7.38
https://packagist.org/packages/phpunit/phpunit#4.8.23

I'm going to merge and see what people using the dev latest encounter.

bighappyface added a commit that referenced this pull request Feb 17, 2016
Enhancement: Require more recent phpunit/phpunit
@bighappyface bighappyface merged commit 37810e9 into jsonrainbow:master Feb 17, 2016
@localheinz localheinz deleted the feature/phpunit branch February 17, 2016 15:37
@davidwindell
Copy link

This seems to be causing us some problems with composer;

Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Could not parse version constraint ^4.8.22: Invalid version string "^4.8.22"' in /var/www/vendor/composer/composer/src/Composer/Package/Version/VersionParser.php:378
Stack trace:
#0 /var/www/vendor/composer/composer/src/Composer/Package/Version/VersionParser.php(244): Composer\Package\Version\VersionParser->parseConstraint('^4.8.22')
#1 /var/www/vendor/composer/composer/src/Composer/Package/Version/VersionParser.php(207): Composer\Package\Version\VersionParser->parseConstraints('^4.8.22')
#2 /var/www/vendor/composer/composer/src/Composer/Package/Loader/ArrayLoader.php(123): Composer\Package\Version\VersionParser->parseLinks('justinrainbow/j...', 'dev-master', 'requires (for d...', Array)
#3 /var/www/vendor/composer/composer/src/Composer/Repository/FilesystemRepository.php(62): Composer\Package\Loader\ArrayLoader->load(Array)
#4 /var/www/vendor/composer/composer/src/Composer/Repository/ArrayRepository.php(170): Composer\Repository\FilesystemRepository in /var/www/vendor/composer/composer/src/Composer/Package/Version/VersionParser.php on line 378

@localheinz
Copy link
Contributor Author

@davidwindell

Time to update composer itself, the ^ operator has been supported for a long, long time!

$ composer self-update

@davidwindell
Copy link

Yep, already running latest release, still get the error.
On 3 Mar 2016 5:02 a.m., "Andreas Möller" [email protected] wrote:

@davidwindell https://github.com/davidwindell

Time to update composer itself, the ^ operator has been supported for a
long, long time!

$ composer self-update


Reply to this email directly or view it on GitHub
#174 (comment)
.

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.

4 participants