Test failure
remicollet opened this issue · comments
Remi Collet commented
There was 1 failure:
- Warning
The data provider specified for Ds\Tests\MapTest::testSorted is invalid.
Method sortDataProvider does not exist
FAILURES!
Probably Map/sorted could be dropped (seems a duplicate of Map/sort), or the data provider name fixed.
Rudi Theunissen commented
The trait for sort
should have covered this mistake. What version of PHPUnit were you using? Was this when running all the tests?
Fixed in d53ada1
Remi Collet commented
Was this when running all the tests?
Yes
But this appear only in some cases, probably related to files order (and to classmap used, generated by "phpab" instead of the composer one).
Remi Collet commented
still some duplicate
$ phpab --output foo.php vendor/php-ds/tests/tests/
phpab 1.21.0 - Copyright (C) 2009 - 2016 by Arne Blankerts
Scanning directory vendor/php-ds/tests/tests/
Redeclaration of trait, interface or class found:
Unit name: ds\tests\map\sort
First occurance: /work/GIT/php-ds/vendor/php-ds/tests/tests/Map/sorted.php
Redeclaration: /work/GIT/php-ds/vendor/php-ds/tests/tests/Map/sort.php
Even if composer is silent, this could obviously raise some issues.
Rudi Theunissen commented
Okay, this should now be fixed in 6bed9cf
Remi Collet commented
Indeed, fixed.
Rudi Theunissen commented
Thanks for your help @remicollet