Source: phpmyadmin Version: 4:5.2.1+dfsg-1 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: pkg-php-p...@lists.alioth.debian.org Usertags: phpunit
Hi, We will start the phpunit 10 transition in unstable soon. During a test rebuild, phpmyadmin was found to FTBFS. To reproduce this locally, you need to install the phpunit 10 package (and any other dependency, which should also be available) from experimental on an unstable system or build chroot. Relevant part (hopefully): > 1) Your XML configuration validates against a deprecated schema. Migrate your > XML configuration using "--migrate-configuration"! > > -- > > There were 43 errors: > > 1) PhpMyAdmin\Tests\TrackerTest::testCreateVersion > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/TrackerTest.php:240 > > 2) PhpMyAdmin\Tests\Plugins\Auth\AuthenticationCookieTest::testAuthFailsErrno > TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid > callback, class PHPUnit\Framework\MockObject\Builder\InvocationMocker does > not have a method "withConsecutive" > > /<<PKGBUILDDIR>>/test/classes/AbstractNetworkTestCase.php:83 > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationCookieTest.php:899 > > 3) > PhpMyAdmin\Tests\Plugins\Auth\AuthenticationCookieTest::testAuthFailsActivity > TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid > callback, class PHPUnit\Framework\MockObject\Builder\InvocationMocker does > not have a method "withConsecutive" > > /<<PKGBUILDDIR>>/test/classes/AbstractNetworkTestCase.php:83 > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationCookieTest.php:835 > > 4) PhpMyAdmin\Tests\Plugins\Auth\AuthenticationCookieTest::testAuthFailsDBI > TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid > callback, class PHPUnit\Framework\MockObject\Builder\InvocationMocker does > not have a method "withConsecutive" > > /<<PKGBUILDDIR>>/test/classes/AbstractNetworkTestCase.php:83 > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationCookieTest.php:869 > > 5) PhpMyAdmin\Tests\Plugins\Auth\AuthenticationCookieTest::testAuthFailsDeny > TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid > callback, class PHPUnit\Framework\MockObject\Builder\InvocationMocker does > not have a method "withConsecutive" > > /<<PKGBUILDDIR>>/test/classes/AbstractNetworkTestCase.php:83 > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationCookieTest.php:813 > > 6) PhpMyAdmin\Tests\Plugins\Auth\AuthenticationCookieTest::testAuthFailsNoPass > TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid > callback, class PHPUnit\Framework\MockObject\Builder\InvocationMocker does > not have a method "withConsecutive" > > /<<PKGBUILDDIR>>/test/classes/AbstractNetworkTestCase.php:83 > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationCookieTest.php:736 > > 7) PhpMyAdmin\Tests\Plugins\Export\ExportOdsTest::testExportFooter > Error: Call to undefined method > PhpMyAdmin\Tests\Plugins\Export\ExportOdsTest::setOutputCallback() > > /<<PKGBUILDDIR>>/test/classes/Plugins/Export/ExportOdsTest.php:175 > > 8) PhpMyAdmin\Tests\ConfigStorage\RelationCleanupTest::testTableWithRelations > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/ConfigStorage/RelationCleanupTest.php:144 > > 9) PhpMyAdmin\Tests\ConfigStorage\RelationCleanupTest::testUserWithRelations > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/ConfigStorage/RelationCleanupTest.php:291 > > 10) > PhpMyAdmin\Tests\ConfigStorage\RelationCleanupTest::testColumnWithRelations > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/ConfigStorage/RelationCleanupTest.php:77 > > 11) > PhpMyAdmin\Tests\ConfigStorage\RelationCleanupTest::testDatabaseWithRelations > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/ConfigStorage/RelationCleanupTest.php:229 > > 12) PhpMyAdmin\Tests\Setup\FormProcessingTest::testProcessFormSet > TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid > callback, class PHPUnit\Framework\MockObject\Builder\InvocationMocker does > not have a method "withConsecutive" > > /<<PKGBUILDDIR>>/test/classes/AbstractNetworkTestCase.php:83 > /<<PKGBUILDDIR>>/test/classes/Setup/FormProcessingTest.php:38 > > 13) PhpMyAdmin\Tests\ConfigStorage\UserGroupsTest::testDeleteUserGroup > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/ConfigStorage/UserGroupsTest.php:105 > > 14) > PhpMyAdmin\Tests\VersionInformationTest::testGetLatestCompatibleVersionWithNewPHPVersion > with data set #3 > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/VersionInformationTest.php:295 > > 15) > PhpMyAdmin\Tests\VersionInformationTest::testGetLatestCompatibleVersionWithNewPHPVersion > with data set #2 > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/VersionInformationTest.php:295 > > 16) > PhpMyAdmin\Tests\VersionInformationTest::testGetLatestCompatibleVersionWithNewPHPVersion > with data set #1 > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/VersionInformationTest.php:295 > > 17) > PhpMyAdmin\Tests\VersionInformationTest::testGetLatestCompatibleVersionWithNewPHPVersion > with data set #6 > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/VersionInformationTest.php:295 > > 18) > PhpMyAdmin\Tests\VersionInformationTest::testGetLatestCompatibleVersionWithNewPHPVersion > with data set #4 > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/VersionInformationTest.php:295 > > 19) > PhpMyAdmin\Tests\VersionInformationTest::testGetLatestCompatibleVersionWithNewPHPVersion > with data set #0 > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/VersionInformationTest.php:295 > > 20) > PhpMyAdmin\Tests\VersionInformationTest::testGetLatestCompatibleVersionWithNewPHPVersion > with data set #5 > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/VersionInformationTest.php:295 > > 21) > PhpMyAdmin\Tests\VersionInformationTest::testGetLatestCompatibleVersionWithMultipleServers > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/VersionInformationTest.php:222 > > 22) > PhpMyAdmin\Tests\VersionInformationTest::testGetLatestCompatibleVersionWithOldPHPVersion > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/VersionInformationTest.php:249 > > 23) > PhpMyAdmin\Tests\VersionInformationTest::testGetLatestCompatibleVersionWithSingleServer > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/VersionInformationTest.php:188 > > 24) > PhpMyAdmin\Tests\Http\Factory\ServerRequestFactoryTest::testCreateServerRequestFromGlobals > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/test/classes/Http/Factory/ServerRequestFactoryTest.php:130 > > 25) PhpMyAdmin\Tests\Server\PrivilegesTest::testGetUserPrivileges > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/Server/PrivilegesTest.php:1882 > > 26) > PhpMyAdmin\Tests\UtilTest::testCurrentUserHasNotUserPrivilegeButDbPrivilege > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/UtilTest.php:2157 > > 27) > PhpMyAdmin\Tests\UtilTest::testCurrentUserHasNotUserPrivilegeAndNotDbPrivilegeButTablePrivilege > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/UtilTest.php:2219 > > 28) > PhpMyAdmin\Tests\UtilTest::testCurrentUserHasNotUserPrivilegeAndNotDbPrivilegeAndNotTablePrivilege > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/UtilTest.php:2255 > > 29) > PhpMyAdmin\Tests\UtilTest::testCurrentUserHasNotUserPrivilegeAndNotDbPrivilege > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/UtilTest.php:2188 > > 30) PhpMyAdmin\Tests\Plugins\Auth\AuthenticationHttpTest::testAuthHost > TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid > callback, class PHPUnit\Framework\MockObject\Builder\InvocationMocker does > not have a method "withConsecutive" > > /<<PKGBUILDDIR>>/test/classes/AbstractNetworkTestCase.php:83 > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationHttpTest.php:99 > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationHttpTest.php:153 > > 31) PhpMyAdmin\Tests\Plugins\Auth\AuthenticationHttpTest::testAuthRealm > TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid > callback, class PHPUnit\Framework\MockObject\Builder\InvocationMocker does > not have a method "withConsecutive" > > /<<PKGBUILDDIR>>/test/classes/AbstractNetworkTestCase.php:83 > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationHttpTest.php:99 > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationHttpTest.php:168 > > 32) PhpMyAdmin\Tests\Plugins\Auth\AuthenticationHttpTest::testAuthLogoutUrl > TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid > callback, class PHPUnit\Framework\MockObject\Builder\InvocationMocker does > not have a method "withConsecutive" > > /<<PKGBUILDDIR>>/test/classes/AbstractNetworkTestCase.php:83 > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationHttpTest.php:99 > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationHttpTest.php:125 > > 33) PhpMyAdmin\Tests\Plugins\Auth\AuthenticationHttpTest::testAuthVerbose > TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid > callback, class PHPUnit\Framework\MockObject\Builder\InvocationMocker does > not have a method "withConsecutive" > > /<<PKGBUILDDIR>>/test/classes/AbstractNetworkTestCase.php:83 > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationHttpTest.php:99 > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationHttpTest.php:138 > > 34) PhpMyAdmin\Tests\Plugins\Export\ExportSqlTest::testGetTableDef > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/Plugins/Export/ExportSqlTest.php:802 > /usr/bin/phpunit:74 > > 35) PhpMyAdmin\Tests\Plugins\Export\ExportSqlTest::testGetTableDefWithError > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/Plugins/Export/ExportSqlTest.php:926 > /usr/bin/phpunit:74 > > 36) PhpMyAdmin\Tests\Navigation\NodeFactoryTest::testClassNameError > Error: Call to undefined method > PhpMyAdmin\Tests\Navigation\NodeFactoryTest::expectError() > > /<<PKGBUILDDIR>>/test/classes/Navigation/NodeFactoryTest.php:64 > /usr/bin/phpunit:74 > > 37) PhpMyAdmin\Tests\Navigation\NodeFactoryTest::testFileError > Error: Call to undefined method > PhpMyAdmin\Tests\Navigation\NodeFactoryTest::expectError() > > /<<PKGBUILDDIR>>/test/classes/Navigation/NodeFactoryTest.php:54 > /usr/bin/phpunit:74 > > 38) PhpMyAdmin\Tests\ConfigTest::testCheckServersWithInvalidServer > Error: Call to undefined method PhpMyAdmin\Tests\ConfigTest::expectError() > > /<<PKGBUILDDIR>>/test/classes/ConfigTest.php:1108 > /usr/bin/phpunit:74 > > 39) PhpMyAdmin\Tests\Plugins\Export\ExportOdtTest::testExportFooter > Error: Call to undefined method > PhpMyAdmin\Tests\Plugins\Export\ExportOdtTest::setOutputCallback() > > /<<PKGBUILDDIR>>/test/classes/Plugins/Export/ExportOdtTest.php:298 > /usr/bin/phpunit:74 > > 40) > PhpMyAdmin\Tests\Server\Privileges\AccountLockingTest::testUnlockWithInvalidAccount > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/Server/Privileges/AccountLockingTest.php:102 > /usr/bin/phpunit:74 > > 41) > PhpMyAdmin\Tests\Server\Privileges\AccountLockingTest::testLockWithInvalidAccount > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/Server/Privileges/AccountLockingTest.php:43 > /usr/bin/phpunit:74 > > 42) > PhpMyAdmin\Tests\Server\Privileges\AccountLockingTest::testUnlockWithValidAccount > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/Server/Privileges/AccountLockingTest.php:83 > /usr/bin/phpunit:74 > > 43) > PhpMyAdmin\Tests\Server\Privileges\AccountLockingTest::testLockWithValidAccount > Error: Call to undefined method > PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive() > > /<<PKGBUILDDIR>>/test/classes/Server/Privileges/AccountLockingTest.php:24 > /usr/bin/phpunit:74 > > -- > > There were 2 failures: > > 1) PhpMyAdmin\Tests\ErrorHandlerTest::testHandleExceptionForProdEnv > Failed asserting that '<html><head><title>Internal error: Exception: > Exception message.</title></head><div class="alert alert-danger" > role="alert"><img src="themes/dot.gif" title="" alt="" class="icon > ic_s_error"> Exception: Exception message.</div></body></html>' does not > contain "Internal error". > > /<<PKGBUILDDIR>>/test/classes/ErrorHandlerTest.php:343 > > 2) PhpMyAdmin\Tests\ErrorTest::testGetBacktraceDisplay > Failed asserting that > './../../../../../../usr/share/php/PHPUnit/Framework/TestCase.php#624: > PHPUnit\Framework\TestCase->invokeBeforeTestHookMethods(<br>\n > array,<br>\n > <Class:PHPUnit\Event\DispatchingEmitter>,<br>\n > )<br>\n > ./../../../../../../usr/share/php/PHPUnit/Framework/TestRunner.php#101: > PHPUnit\Framework\TestCase->runBare()<br>\n > ./../../../../../../usr/share/php/PHPUnit/Framework/TestCase.php#468: > PHPUnit\Framework\TestRunner->run(<Class:PhpMyAdmin\Tests\ErrorTest>)<br>\n > ./../../../../../../usr/share/php/PHPUnit/Framework/TestSuite.php#340: > PHPUnit\Framework\TestCase->run()<br>\n > ./../../../../../../usr/share/php/PHPUnit/Framework/TestSuite.php#340: > PHPUnit\Framework\TestSuite->run()<br>\n > ./../../../../../../usr/share/php/PHPUnit/Framework/TestSuite.php#340: > PHPUnit\Framework\TestSuite->run()<br>\n > ./../../../../../../usr/share/php/PHPUnit/TextUI/TestRunner.php#63: > PHPUnit\Framework\TestSuite->run()<br>\n > ./../../../../../../usr/share/php/PHPUnit/TextUI/Application.php#168: > PHPUnit\TextUI\TestRunner->run(<br>\n > <Class:PHPUnit\TextUI\Configuration\Configuration>,<br>\n > <Class:PHPUnit\Runner\ResultCache\DefaultResultCache>,<br>\n > <Class:PHPUnit\Framework\TestSuite>,<br>\n > )<br>\n > ./../../../../../../usr/bin/phpunit#74: > PHPUnit\TextUI\Application->run(array)<br>\n > ' contains > "PHPUnit\Framework\TestResult->run(<Class:PhpMyAdmin\Tests\ErrorTest>)<br>". > > /<<PKGBUILDDIR>>/test/classes/ErrorTest.php:121 > > -- > > 258 tests triggered 258 PHPUnit deprecations: > > 1) PhpMyAdmin\Tests\AdvisorTest::testAdvisorBytime > Data Provider method PhpMyAdmin\Tests\AdvisorTest::advisorTimes() is not > static > > /<<PKGBUILDDIR>>/test/classes/AdvisorTest.php:30 > > 2) PhpMyAdmin\Tests\AdvisorTest::testAddRule > Data Provider method PhpMyAdmin\Tests\AdvisorTest::rulesProvider() is not > static > > /<<PKGBUILDDIR>>/test/classes/AdvisorTest.php:71 > > 3) PhpMyAdmin\Tests\CacheTest::testCacheHas > Data Provider method PhpMyAdmin\Tests\CacheTest::dataProviderCacheKeyValues() > is not static > > /<<PKGBUILDDIR>>/test/classes/CacheTest.php:46 > ... > > /<<PKGBUILDDIR>>/test/classes/ZipExtensionTest.php:90 > > -- > > There were 43 risky tests: > > 1) PhpMyAdmin\Tests\TrackerTest::testCreateVersion > This test did not perform any assertions > > /<<PKGBUILDDIR>>/test/classes/TrackerTest.php:193 > > 2) PhpMyAdmin\Tests\Plugins\Auth\AuthenticationCookieTest::testAuthFailsErrno > This test did not perform any assertions > > /<<PKGBUILDDIR>>/test/classes/Plugins/Auth/AuthenticationCookieTest.php:878 > > 3) > PhpMyAdmin\Tests\Plugins\Auth\AuthenticationCookieTest::testAuthFailsActivity > This test did not perform any assertions > ... > > /<<PKGBUILDDIR>>/test/classes/Server/Privileges/AccountLockingTest.php:17 > > ERRORS! > Tests: 2921, Assertions: 11736, Errors: 43, Failures: 2, Deprecations: 259, > Skipped: 40, Incomplete: 1, Risky: 43. > make[1]: *** [debian/rules:25: override_dh_auto_test] Error 2 The full build logs and additional context is available at http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/0/phpmyadmin/ A phpunit reverse-dependencies rebuild status is available at http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/index.html -- Athos Ribeiro