php-ds / tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test failure

remicollet opened this issue · comments

There was 1 failure:

  1. 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.

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

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).

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.

Okay, this should now be fixed in 6bed9cf

Indeed, fixed.

Thanks for your help @remicollet