Skip to content

Commit

Permalink
Use more recent PHPUnit and PHPSpec versions (#76)
Browse files Browse the repository at this point in the history
* Use more recent PHPUnit and PHPSpec versions

* Drop HHVM support (see phpspec/phpspec#1139)
  • Loading branch information
Arcesilas authored and franzliedke committed Sep 15, 2017
1 parent c1359ff commit da3cc1c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ php:
- 5.5
- 5.6
- 7.0
- hhvm

before_script:
- travis_retry composer self-update
Expand Down
2 changes: 1 addition & 1 deletion src/Parts/PhpSpec/Part.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/Parts/PhpUnit/Part.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'};
Expand Down

0 comments on commit da3cc1c

Please sign in to comment.