sebastianbergmann / php-token-stream

Wrapper around PHP's tokenizer extension.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting failed assertion inside PHP_Token_FunctionTest::testGetEndLine

peter279k opened this issue · comments

As title, I found this failed assertion during phpunit tests.

image

Reproduce issue

  • OS: Ubuntu 16.04
  • PHP version: PHP 7.2.11-3+ubuntu16.04.1+deb.sury.org+1 with Xdebug 2.6.1.
  • PHPUnit version: PHPUnit 7.4.3.
  • Run phpunit then it will get this failed assertions message.
commented

This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions.

I cannot reproduce this:

$ ./vendor/bin/phpunit                              
PHPUnit 7.5.1 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.3.1 with Xdebug 2.7.0beta1
Configuration: /usr/local/src/php-token-stream/phpunit.xml

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

Time: 131 ms, Memory: 6.00MB

OK (41 tests, 106 assertions)