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'};