在Symfony 4上安装phpUnit

时间:2018-03-06 14:12:23

标签: symfony phpunit

我遵循本手册: https://symfony.com/doc/current/testing.html 当我运行" \ vendor \ bin \ simple-phpunit" (在"作曲家需要--dev symfony / phpunit-bridge")在Windows上,结果是:

PS C:\xampp7\htdocs\symfony\xliff_excel_converter> .\vendor\bin\simple-phpunit
Das Verzeichnis ist nicht leer.
symfony/yaml is not required in your composer.json and has not been removed
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies
Package operations: 23 installs, 0 updates, 0 removals
  - Installing phar-io/version (1.0.1): Loading from cache
  - Installing phar-io/manifest (1.0.1): Loading from cache
  - Installing theseer/tokenizer (1.1.0): Loading from cache
  - Installing sebastian/version (2.0.1): Loading from cache
  - Installing sebastian/environment (3.1.0): Loading from cache
  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache
  - Installing phpunit/php-token-stream (2.0.2): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing phpunit/php-file-iterator (1.4.5): Loading from cache
  - Installing phpunit/php-code-coverage (5.3.0): Loading from cache
    Failed to download phpunit/php-code-coverage from dist: 
    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems):
    ZipArchive::extractTo(C:\xampp7\htdocs\symfony\xliff_excel_converter\vendor\bin\.phpunit\phpunit-6.5/vendor/composer/18993172/sebastianbergmann-php-code-coverage-661f34d\tests\_files\Report\HTML\CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html): 
    failed to open stream: No such file or directory
    Now trying to download from source
  - Installing phpunit/php-code-coverage (5.3.0): Cloning 661f34d0bd from cache


  [RuntimeException]
  Failed to clone https://github.com/sebastianbergmann/php-code-coverage.git via https, ssh protocols, aborting.

  - https://github.com/sebastianbergmann/php-code-coverage.git
    fatal: destination path 'C:\xampp7\htdocs\symfony\xliff_excel_converter\vendor\bin\.phpunit\phpunit-6.5\vendor\ph
  punit\php-code-coverage' already exists and is not an empty directory.

  - git@github.com:sebastianbergmann/php-code-coverage.git
    fatal: destination path 'C:\xampp7\htdocs\symfony\xliff_excel_converter\vendor\bin\.phpunit\phpunit-6.5\vendor\ph
  punit\php-code-coverage' already exists and is not an empty directory.

因此安装" phpunit / php-code-coverage"存在问题。 我真的需要帮助来解决这个问题;)我不是专家 Composer和phpUnit。到目前为止,我的Symfony安装没有任何问题。谢谢。

0 个答案:

没有答案