From da3cc1c4b4b4e56d98d3183eea24dcd9441b03f0 Mon Sep 17 00:00:00 2001 From: Arcesilas Date: Fri, 15 Sep 2017 13:38:01 +0200 Subject: [PATCH] Use more recent PHPUnit and PHPSpec versions (#76) * Use more recent PHPUnit and PHPSpec versions * Drop HHVM support (see https://github.com/phpspec/phpspec/issues/1139) --- .travis.yml | 1 - src/Parts/PhpSpec/Part.php | 2 +- src/Parts/PhpUnit/Part.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 58cd6a5..09ed090 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,6 @@ php: - 5.5 - 5.6 - 7.0 - - hhvm before_script: - travis_retry composer self-update diff --git a/src/Parts/PhpSpec/Part.php b/src/Parts/PhpSpec/Part.php index 8ecfc61..ed92c55 100644 --- a/src/Parts/PhpSpec/Part.php +++ b/src/Parts/PhpSpec/Part.php @@ -10,7 +10,7 @@ class Part extends AbstractPart public function setupPackage($composer, Directory $target) { if ($this->input->confirm('Do you want to set up PhpSpec as a testing tool?')) { - $composer->{'require-dev'}['phpspec/phpspec'] = '~2.0'; + $composer->{'require-dev'}['phpspec/phpspec'] = '^4.0'; $psr4Autoloading = (array) $composer->autoload->{'psr-4'}; $namespace = key($psr4Autoloading).'Tests'; diff --git a/src/Parts/PhpUnit/Part.php b/src/Parts/PhpUnit/Part.php index ab356a4..ab5185c 100644 --- a/src/Parts/PhpUnit/Part.php +++ b/src/Parts/PhpUnit/Part.php @@ -10,7 +10,7 @@ class Part extends AbstractPart public function setupPackage($composer, Directory $target) { if ($this->input->confirm('Do you want to set up PhpUnit as a testing tool?')) { - $composer->{'require-dev'}['phpunit/phpunit'] = '4.*'; + $composer->{'require-dev'}['phpunit/phpunit'] = '^6.3'; // Add autoloading rules for tests $psr4Autoloading = (array) $composer->autoload->{'psr-4'};