llaville / php-compatinfo

Library that find out the minimum version and the extensions required for a piece of code to run
https://llaville.github.io/php-compatinfo/7.1/
Other
372 stars 20 forks source link

Reference Unit Tests must to be fix to improve QA of release 5.4.0 #274

Closed llaville closed 4 years ago

llaville commented 4 years ago

As the large group test cases is not run each time, there are some references not under test. See following run report

PHPUnit 7.5.20 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.1.33 with Xdebug 2.9.6
Configuration: /shared/backups/bartlett/php-compat-info/phpunit.xml.dist

......F.............................F.........FFFF.FF.F.FFFFFF.  63 / 123 ( 51%)
....F.............................F.........FFFF.FF.F.FFFFFF    123 / 123 (100%)

Time: 9.58 seconds, Memory: 56.00 MB

There were 30 failures:

1) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #5 ('imagepng', 'gd')
gd::imagepng function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/imagepng.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

2) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #35 ('fputcsv', 'standard')
standard::fputcsv function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/fputcsv.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

3) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #45 ('openssl_decrypt', 'openssl')
openssl::openssl_decrypt function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/openssl_decrypt.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

4) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #46 ('openssl_encrypt', 'openssl')
openssl::openssl_encrypt function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/openssl_encrypt.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

5) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #47 ('openssl_open', 'openssl')
openssl::openssl_open function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/openssl_open.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

6) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #48 ('openssl_seal', 'openssl')
openssl::openssl_seal function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/openssl_seal.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

7) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #50 ('mb_eregi_replace', 'mbstring')
mbstring::mb_eregi_replace function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/mb_eregi_replace.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

8) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #51 ('mberegi_replace', 'mbstring')
mbstring::mberegi_replace function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/mberegi_replace.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

9) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #53 ('session_set_save_handler', 'session')
session::session_set_save_handler function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/session_set_save_handler.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

10) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #55 ('pg_fetch_all', 'pgsql')
pgsql::pg_fetch_all function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/pg_fetch_all.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

11) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #56 ('pg_last_notice', 'pgsql')
pgsql::pg_last_notice function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/pg_last_notice.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

12) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #57 ('pg_select', 'pgsql')
pgsql::pg_select function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/pg_select.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

13) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #58 ('mysqli_escape_string', 'mysqli')
mysqli::mysqli_escape_string function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/mysqli_escape_string.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

14) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #59 ('mysqli_query', 'mysqli')
mysqli::mysqli_query function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/mysqli_query.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

15) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithDefaultArguments with data set #60 ('mysqli_real_escape_string', 'mysqli')
mysqli::mysqli_real_escape_string function does not have test file for default arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/mysqli_real_escape_string.18881d.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:104

16) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #5 ('imagepng', 'gd')
gd::imagepng function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/imagepng.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

17) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #35 ('fputcsv', 'standard')
standard::fputcsv function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/fputcsv.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

18) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #45 ('openssl_decrypt', 'openssl')
openssl::openssl_decrypt function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/openssl_decrypt.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

19) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #46 ('openssl_encrypt', 'openssl')
openssl::openssl_encrypt function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/openssl_encrypt.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

20) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #47 ('openssl_open', 'openssl')
openssl::openssl_open function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/openssl_open.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

21) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #48 ('openssl_seal', 'openssl')
openssl::openssl_seal function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/openssl_seal.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

22) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #50 ('mb_eregi_replace', 'mbstring')
mbstring::mb_eregi_replace function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/mb_eregi_replace.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

23) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #51 ('mberegi_replace', 'mbstring')
mbstring::mberegi_replace function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/mberegi_replace.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

24) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #53 ('session_set_save_handler', 'session')
session::session_set_save_handler function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/session_set_save_handler.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

25) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #55 ('pg_fetch_all', 'pgsql')
pgsql::pg_fetch_all function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/pg_fetch_all.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

26) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #56 ('pg_last_notice', 'pgsql')
pgsql::pg_last_notice function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/pg_last_notice.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

27) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #57 ('pg_select', 'pgsql')
pgsql::pg_select function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/pg_select.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

28) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #58 ('mysqli_escape_string', 'mysqli')
mysqli::mysqli_escape_string function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/mysqli_escape_string.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

29) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #59 ('mysqli_query', 'mysqli')
mysqli::mysqli_query function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/mysqli_query.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

30) Bartlett\Tests\CompatInfo\Reference\ParameterTest::testGetFunctionsWithOptionalArguments with data set #60 ('mysqli_real_escape_string', 'mysqli')
mysqli::mysqli_real_escape_string function does not have test file for optional arguments
Failed asserting that file "/shared/backups/bartlett/php-compat-info/tests/fixtures/references/mysqli_real_escape_string.18881o.php" exists.

/shared/backups/bartlett/php-compat-info/tests/Reference/ParameterTest.php:143

FAILURES!
Tests: 123, Assertions: 223, Failures: 30.