Closed remicollet closed 4 years ago
Without this patch
$ php74 /usr/bin/phpunit --bootstrap tests/bootstrap.php --filter '^((?!(testBlade|testTwig)).)*$' tests
PHPUnit 5.7.27 by Sebastian Bergmann and contributors.
EEEEEEEEEEE..E.....................................EE............ 65 / 97 ( 67%)
................................ 97 / 97 (100%)
Time: 62 ms, Memory: 6.00MB
There were 14 errors:
1) Gettext\Tests\AssetsTest::testPo
TypeError: Argument 1 passed to Gettext\Translations::Gettext\{closure}() must be an instance of Gettext\Translation, array given
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:438
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:442
/dev/shm/BUILD/Gettext-4.7.0/tests/AssetsTest.php:20
2) Gettext\Tests\AssetsTest::testPo2
TypeError: Argument 1 passed to Gettext\Translations::Gettext\{closure}() must be an instance of Gettext\Translation, array given
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:438
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:442
/dev/shm/BUILD/Gettext-4.7.0/tests/AssetsTest.php:62
3) Gettext\Tests\AssetsTest::testPo3
TypeError: Argument 1 passed to Gettext\Translations::Gettext\{closure}() must be an instance of Gettext\Translation, array given
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:438
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:442
/dev/shm/BUILD/Gettext-4.7.0/tests/AssetsTest.php:98
4) Gettext\Tests\AssetsTest::testJed
TypeError: Argument 1 passed to Gettext\Translations::Gettext\{closure}() must be an instance of Gettext\Translation, array given
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:438
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:442
/dev/shm/BUILD/Gettext-4.7.0/tests/AssetsTest.php:170
5) Gettext\Tests\AssetsTest::testJsCode
TypeError: Argument 1 passed to Gettext\Translations::Gettext\{closure}() must be an instance of Gettext\Translation, array given
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:438
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:442
/dev/shm/BUILD/Gettext-4.7.0/tests/AssetsTest.php:206
6) Gettext\Tests\AssetsTest::testJs2Code
TypeError: Argument 1 passed to Gettext\Translations::Gettext\{closure}() must be an instance of Gettext\Translation, array given
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:438
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:442
/dev/shm/BUILD/Gettext-4.7.0/tests/AssetsTest.php:242
7) Gettext\Tests\AssetsTest::testPhpCode
TypeError: Argument 1 passed to Gettext\Translations::Gettext\{closure}() must be an instance of Gettext\Translation, array given
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:438
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:442
/dev/shm/BUILD/Gettext-4.7.0/tests/AssetsTest.php:277
8) Gettext\Tests\AssetsTest::testPhpCode2
TypeError: Argument 1 passed to Gettext\Translations::Gettext\{closure}() must be an instance of Gettext\Translation, array given
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:438
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:442
/dev/shm/BUILD/Gettext-4.7.0/tests/AssetsTest.php:317
9) Gettext\Tests\AssetsTest::testPhpCode3
TypeError: Argument 1 passed to Gettext\Translations::Gettext\{closure}() must be an instance of Gettext\Translation, array given
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:438
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:442
/dev/shm/BUILD/Gettext-4.7.0/tests/AssetsTest.php:355
10) Gettext\Tests\AssetsTest::testVueJs
TypeError: Argument 1 passed to Gettext\Translations::Gettext\{closure}() must be an instance of Gettext\Translation, array given
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:438
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:442
/dev/shm/BUILD/Gettext-4.7.0/tests/AssetsTest.php:432
11) Gettext\Tests\AssetsTest::testPhpCode4
TypeError: Argument 1 passed to Gettext\Translations::Gettext\{closure}() must be an instance of Gettext\Translation, array given
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:438
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:442
/dev/shm/BUILD/Gettext-4.7.0/tests/AssetsTest.php:478
12) Gettext\Tests\AssetsTest::testXliffUnitIds
TypeError: Argument 1 passed to Gettext\Translations::Gettext\{closure}() must be an instance of Gettext\Translation, array given
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:438
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Translations.php:442
/dev/shm/BUILD/Gettext-4.7.0/tests/AssetsTest.php:560
13) Gettext\Tests\StringsTest::testStringFromPhp with data set #13 ('"a\x20b $c"', 'a b $c')
Invalid characters passed for attempted conversion, these have been ignored
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Extractors/PhpCode.php:125
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Extractors/PhpCode.php:103
/dev/shm/BUILD/Gettext-4.7.0/tests/StringsTest.php:37
14) Gettext\Tests\StringsTest::testStringFromPhp with data set #14 ('"a\x01b\2 \1 \01 \001 \r \n \t \v \f"', Binary String: 0x6101620220012...00b200c)
Invalid characters passed for attempted conversion, these have been ignored
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Extractors/PhpCode.php:125
/dev/shm/BUILDROOT/php-gettext-gettext-4.7.0-2.fc29.remi.x86_64/usr/share/php/Gettext/Extractors/PhpCode.php:103
/dev/shm/BUILD/Gettext-4.7.0/tests/StringsTest.php:37
ERRORS!
Tests: 97, Assertions: 457, Errors: 14.
erreur : Mauvais statut de sortie pour /var/tmp/rpm-tmp.11eYYO (%check)
With this patch:
The 2 failures are not related to this project, but to twig