phpunit: PHPUnit 3.7 composer install fails with phpunit-mock-objects package.

In the light of #1229 I wanted to give PHPUnit 3.7 install via composer a shot.

PHPUnit 3.7 requires PHP 5.3.3 (I have PHP 5.4.13)

I followed the instructions on http://phpunit.de/manual/3.7/en/installation.html.

I created the minimal composer.json file.

I executed composer install which failed:

$ composer install
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "c:/Dokumente und Einstel
lungen/mot/Lokale Einstellungen/Anwendungsdaten/Programs/Composer/bin/composer.phar self-update" to get the latest version.
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing symfony/yaml (v2.4.4)
    Downloading: 100%

  - Installing phpunit/php-text-template (1.2.0)
    Loading from cache

  - Installing phpunit/phpunit-mock-objects (1.2.3)
    Loading from cache



  [ErrorException]
  ZipArchive::extractTo(vendor/composer/8bc5af00/sebastianbergmann-phpunit-mock-objects-5794e3c\Tests\MockObject/namespaced_class
  _implementing_interface_dont_call_parent_constructor.phpt): failed to open stream: No such file or directory



install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--n
o-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader]

I then continued with the self-update and did a re-run:

$ composer self-update
Updating to version 0c343f925ad578a9da4d9a4cfff4e91b500d206c.
    Downloading: 100%

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing phpunit/phpunit-mock-objects (1.2.3)
    Downloading: 100%



  [ErrorException]
  ZipArchive::extractTo(vendor/composer/782095c0/sebastianbergmann-phpunit-mock-objects-5794e3c\Tests\MockObject/namespaced_class
  _implementing_interface_dont_call_parent_constructor.phpt): failed to open stream: No such file or directory



install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--n
o-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]

So the installation does fail because ZipArchive gives an error exception in the phpunit-mock-objects package. Please fix that package.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Reactions: 1
  • Comments: 15 (15 by maintainers)

Most upvoted comments

Maybe the path is too long for Windows.