sebastianbergmann / php-token-stream

Wrapper around PHP's tokenizer extension.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad phpunit configuration

remicollet opened this issue · comments

When running its test suite

PHPUnit 7.4.3 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.3.0RC4
Configuration: /dev/shm/BUILD/php-token-stream-c99e3be9d3e85f60646f152f9002d46ed7770d18/phpunit.xml

  Warning - The configuration file did not pass validation!
  The following problems have been detected:

  Line 8:
  - Element 'testsuite': The attribute 'name' is required but missing.

  Test results may not be as expected.


.........................................                         41 / 41 (100%)

Time: 28 ms, Memory: 6.00MB

OK (41 tests, 106 assertions)

What was the solution? I just got this as well

For those who's here like me, but see a closed status instead of a visible solution, here's what will solve this:

Change

<testsuite>

into

<testsuite name="default">

Source: the commit

I got this warn:

Line 11:
  - Element 'testsuites': Character content other than whitespace is not allowed because the content type is 'element-only'.

this is my phpunit.xml file:

Selección_634