[pkg-php-pear] Bug#1070588: php-phpseclib: FTBFS with phpunit 11: There were 17 PHPUnit errors
Athos Ribeiro
athoscribeiro at gmail.com
Mon May 6 15:27:39 BST 2024
Source: php-phpseclib
Version: 2.0.47-1
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: phpunit11
Hi,
phpunit 11 is out and is now available in experimental. During a test rebuild,
php-phpseclib was found to fail to build with this new phpunit version.
To reproduce this locally, you need to install phpunit from experimental on an
unstable system or build chroot.
Relevant part (hopefully):
> There were 17 PHPUnit errors:
>
> 1) Unit_Crypt_AES_McryptTest::testEncryptDecryptWithContinuousBuffer
> The data provider specified for Unit_Crypt_AES_McryptTest::testEncryptDecryptWithContinuousBuffer is invalid
> Data Provider method Unit_Crypt_AES_McryptTest::continuousBufferCombos() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/AES/McryptTest.php:79
>
> 2) Unit_Crypt_AES_McryptTest::testContinuousBufferBattery
> The data provider specified for Unit_Crypt_AES_McryptTest::testContinuousBufferBattery is invalid
> Data Provider method Unit_Crypt_AES_McryptTest::continuousBufferBatteryCombos() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/AES/McryptTest.php:178
>
> 3) Unit_Crypt_AES_McryptTest::testNonContinuousBufferBattery
> The data provider specified for Unit_Crypt_AES_McryptTest::testNonContinuousBufferBattery is invalid
> Data Provider method Unit_Crypt_AES_McryptTest::continuousBufferBatteryCombos() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/AES/McryptTest.php:225
>
> 4) Unit_Crypt_AES_OpenSSLTest::testEncryptDecryptWithContinuousBuffer
> The data provider specified for Unit_Crypt_AES_OpenSSLTest::testEncryptDecryptWithContinuousBuffer is invalid
> Data Provider method Unit_Crypt_AES_OpenSSLTest::continuousBufferCombos() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/AES/OpenSSLTest.php:79
>
> 5) Unit_Crypt_AES_OpenSSLTest::testContinuousBufferBattery
> The data provider specified for Unit_Crypt_AES_OpenSSLTest::testContinuousBufferBattery is invalid
> Data Provider method Unit_Crypt_AES_OpenSSLTest::continuousBufferBatteryCombos() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/AES/OpenSSLTest.php:178
>
> 6) Unit_Crypt_AES_OpenSSLTest::testNonContinuousBufferBattery
> The data provider specified for Unit_Crypt_AES_OpenSSLTest::testNonContinuousBufferBattery is invalid
> Data Provider method Unit_Crypt_AES_OpenSSLTest::continuousBufferBatteryCombos() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/AES/OpenSSLTest.php:225
>
> 7) Unit_Crypt_AES_PurePHPTest::testEncryptDecryptWithContinuousBuffer
> The data provider specified for Unit_Crypt_AES_PurePHPTest::testEncryptDecryptWithContinuousBuffer is invalid
> Data Provider method Unit_Crypt_AES_PurePHPTest::continuousBufferCombos() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/AES/PurePHPTest.php:79
>
> 8) Unit_Crypt_AES_PurePHPTest::testContinuousBufferBattery
> The data provider specified for Unit_Crypt_AES_PurePHPTest::testContinuousBufferBattery is invalid
> Data Provider method Unit_Crypt_AES_PurePHPTest::continuousBufferBatteryCombos() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/AES/PurePHPTest.php:178
>
> 9) Unit_Crypt_AES_PurePHPTest::testNonContinuousBufferBattery
> The data provider specified for Unit_Crypt_AES_PurePHPTest::testNonContinuousBufferBattery is invalid
> Data Provider method Unit_Crypt_AES_PurePHPTest::continuousBufferBatteryCombos() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/AES/PurePHPTest.php:225
>
> 10) Unit_Crypt_BlowfishTest::testVectors
> The data provider specified for Unit_Crypt_BlowfishTest::testVectors is invalid
> Data Provider method Unit_Crypt_BlowfishTest::engineVectors() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/BlowfishTest.php:75
>
> 11) Unit_Crypt_RC2Test::testVectors
> The data provider specified for Unit_Crypt_RC2Test::testVectors is invalid
> Data Provider method Unit_Crypt_RC2Test::engineVectors() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/RC2Test.php:111
>
> 12) Unit_Crypt_RC4Test::testVectors
> The data provider specified for Unit_Crypt_RC4Test::testVectors is invalid
> Data Provider method Unit_Crypt_RC4Test::engineVectors() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/RC4Test.php:202
>
> 13) Unit_Crypt_RandomTest::testStringLength
> The data provider specified for Unit_Crypt_RandomTest::testStringLength is invalid
> Data Provider method Unit_Crypt_RandomTest::stringLengthData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/RandomTest.php:22
>
> 14) Unit_Crypt_TripleDESTest::testVectors
> The data provider specified for Unit_Crypt_TripleDESTest::testVectors is invalid
> Data Provider method Unit_Crypt_TripleDESTest::engineVectors() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/TripleDESTest.php:105
>
> 15) Unit_Crypt_TripleDESTest::testVectorsWithIV
> The data provider specified for Unit_Crypt_TripleDESTest::testVectorsWithIV is invalid
> Data Provider method Unit_Crypt_TripleDESTest::engineIVVectors() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/TripleDESTest.php:156
>
> 16) Unit_Net_SSH1Test::testFormatLog
> The data provider specified for Unit_Net_SSH1Test::testFormatLog is invalid
> Data Provider method Unit_Net_SSH1Test::formatLogDataProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Net/SSH1Test.php:30
>
> 17) Unit_Net_SSH2UnitTest::testFormatLog
> The data provider specified for Unit_Net_SSH2UnitTest::testFormatLog is invalid
> Data Provider method Unit_Net_SSH2UnitTest::formatLogDataProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Net/SSH2UnitTest.php:33
>
> --
>
> There was 1 PHPUnit test runner warning:
>
> 1) No tests found in class "Unit_Net_SSH1Test".
>
> --
>
> There were 123 PHPUnit test runner deprecations:
>
...
>
> --
>
> There were 6 errors:
>
> 1) Unit_Net_SSH2UnitTest::testGenerateIdentifier
> Error: Undefined constant "phpseclib\Net\NET_SSH2_DISCONNECT_BY_APPLICATION"
>
> /<<PKGBUILDDIR>>/phpseclib/Net/SSH2.php:3460
> /<<PKGBUILDDIR>>/phpseclib/Net/SSH2.php:3476
>
> 2) Unit_Net_SSH2UnitTest::testGetExitStatusIfNotConnected
> Error: Undefined constant "phpseclib\Net\NET_SSH2_DISCONNECT_BY_APPLICATION"
>
> /<<PKGBUILDDIR>>/phpseclib/Net/SSH2.php:3460
> /<<PKGBUILDDIR>>/phpseclib/Net/SSH2.php:3476
>
> 3) Unit_Net_SSH2UnitTest::testPTYIDefaultValue
> Error: Undefined constant "phpseclib\Net\NET_SSH2_DISCONNECT_BY_APPLICATION"
>
> /<<PKGBUILDDIR>>/phpseclib/Net/SSH2.php:3460
> /<<PKGBUILDDIR>>/phpseclib/Net/SSH2.php:3476
>
> 4) Unit_Net_SSH2UnitTest::testEnablePTY
> Error: Undefined constant "phpseclib\Net\NET_SSH2_DISCONNECT_BY_APPLICATION"
>
> /<<PKGBUILDDIR>>/phpseclib/Net/SSH2.php:3460
> /<<PKGBUILDDIR>>/phpseclib/Net/SSH2.php:3476
>
> 5) Unit_Net_SSH2UnitTest::testQuietModeDefaultValue
> Error: Undefined constant "phpseclib\Net\NET_SSH2_DISCONNECT_BY_APPLICATION"
>
> /<<PKGBUILDDIR>>/phpseclib/Net/SSH2.php:3460
> /<<PKGBUILDDIR>>/phpseclib/Net/SSH2.php:3476
>
> 6) Unit_Net_SSH2UnitTest::testEnableQuietMode
> Error: Undefined constant "phpseclib\Net\NET_SSH2_DISCONNECT_BY_APPLICATION"
>
> /<<PKGBUILDDIR>>/phpseclib/Net/SSH2.php:3460
> /<<PKGBUILDDIR>>/phpseclib/Net/SSH2.php:3476
>
> --
>
> There were 8 risky tests:
>
> 1) Unit_Crypt_RSA_LoadKeyTest::testSetLoad
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/RSA/LoadKeyTest.php:412
>
> 2) Unit_Crypt_RSA_LoadKeyTest::testZeroComponents
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/RSA/LoadKeyTest.php:458
>
> 3) Unit_Crypt_TripleDESTest::testCorrectSelfUseInLambda
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Unit/Crypt/TripleDESTest.php:191
>
> 4) Unit_File_ASN1Test::testInfiniteLoop
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Unit/File/ASN1Test.php:296
>
> 5) Unit_File_ASN1Test::testInvalidCertificate
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Unit/File/ASN1Test.php:338
>
> 6) Unit_File_X509_CSRTest::testNewCSR
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Unit/File/X509/CSRTest.php:99
>
> 7) Unit_File_X509_X509Test::testMultipleDomainNames
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Unit/File/X509/X509Test.php:384
>
> 8) Unit_Math_BigInteger_GMPTest::testSlidingWindow
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Unit/Math/BigInteger/TestCase.php:409
>
> ERRORS!
> Tests: 251, Assertions: 20366, Errors: 23, Warnings: 1, Deprecations: 126, Notices: 1, Skipped: 69, Risky: 8.
> make[1]: *** [debian/rules:24: override_dh_auto_test] Error 2
The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/1/php-phpseclib/php-phpseclib_2.0.47-1+rebuild1714790978_amd64-2024-05-04T02:49:39Z.build
More information about the pkg-php-pear
mailing list