[pkg-php-pear] Bug#1070534: php-doctrine-dbal: FTBFS with phpunit 11: There were 11 PHPUnit errors

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:14:18 BST 2024


Source: php-doctrine-dbal
Version: 3.8.3+dfsg-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-doctrine-dbal 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):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpunit --bootstrap vendor/autoload.php
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
...
> 
> There were 11 PHPUnit errors:
> 
> 1) Doctrine\DBAL\Tests\Platforms\DB2PlatformTest::testIsCommentedDoctrineType
> The data provider specified for Doctrine\DBAL\Tests\Platforms\DB2PlatformTest::testIsCommentedDoctrineType is invalid
> Data Provider method Doctrine\DBAL\Tests\Platforms\DB2PlatformTest::getIsCommentedDoctrineType() is not static
> 
> /<<PKGBUILDDIR>>/tests/Platforms/DB2PlatformTest.php:159
> 
> 2) Doctrine\DBAL\Tests\Platforms\MariaDb1027PlatformTest::testIsCommentedDoctrineType
> The data provider specified for Doctrine\DBAL\Tests\Platforms\MariaDb1027PlatformTest::testIsCommentedDoctrineType is invalid
> Data Provider method Doctrine\DBAL\Tests\Platforms\MariaDb1027PlatformTest::getIsCommentedDoctrineType() is not static
> 
> /<<PKGBUILDDIR>>/tests/Platforms/MariaDb1027PlatformTest.php:159
> 
> 3) Doctrine\DBAL\Tests\Platforms\MariaDb1043PlatformTest::testIsCommentedDoctrineType
> The data provider specified for Doctrine\DBAL\Tests\Platforms\MariaDb1043PlatformTest::testIsCommentedDoctrineType is invalid
> Data Provider method Doctrine\DBAL\Tests\Platforms\MariaDb1043PlatformTest::getIsCommentedDoctrineType() is not static
> 
> /<<PKGBUILDDIR>>/tests/Platforms/MariaDb1043PlatformTest.php:159
> 
> 4) Doctrine\DBAL\Tests\Platforms\MariaDb1052PlatformTest::testIsCommentedDoctrineType
> The data provider specified for Doctrine\DBAL\Tests\Platforms\MariaDb1052PlatformTest::testIsCommentedDoctrineType is invalid
> Data Provider method Doctrine\DBAL\Tests\Platforms\MariaDb1052PlatformTest::getIsCommentedDoctrineType() is not static
> 
> /<<PKGBUILDDIR>>/tests/Platforms/MariaDb1052PlatformTest.php:159
> 
> 5) Doctrine\DBAL\Tests\Platforms\MySQL57PlatformTest::testIsCommentedDoctrineType
> The data provider specified for Doctrine\DBAL\Tests\Platforms\MySQL57PlatformTest::testIsCommentedDoctrineType is invalid
> Data Provider method Doctrine\DBAL\Tests\Platforms\MySQL57PlatformTest::getIsCommentedDoctrineType() is not static
> 
> /<<PKGBUILDDIR>>/tests/Platforms/MySQL57PlatformTest.php:159
> 
> 6) Doctrine\DBAL\Tests\Platforms\MySQLPlatformTest::testIsCommentedDoctrineType
> The data provider specified for Doctrine\DBAL\Tests\Platforms\MySQLPlatformTest::testIsCommentedDoctrineType is invalid
> Data Provider method Doctrine\DBAL\Tests\Platforms\MySQLPlatformTest::getIsCommentedDoctrineType() is not static
> 
> /<<PKGBUILDDIR>>/tests/Platforms/MySQLPlatformTest.php:159
> 
> 7) Doctrine\DBAL\Tests\Platforms\OraclePlatformTest::testIsCommentedDoctrineType
> The data provider specified for Doctrine\DBAL\Tests\Platforms\OraclePlatformTest::testIsCommentedDoctrineType is invalid
> Data Provider method Doctrine\DBAL\Tests\Platforms\OraclePlatformTest::getIsCommentedDoctrineType() is not static
> 
> /<<PKGBUILDDIR>>/tests/Platforms/OraclePlatformTest.php:159
> 
> 8) Doctrine\DBAL\Tests\Platforms\PostgreSQL100PlatformTest::testIsCommentedDoctrineType
> The data provider specified for Doctrine\DBAL\Tests\Platforms\PostgreSQL100PlatformTest::testIsCommentedDoctrineType is invalid
> Data Provider method Doctrine\DBAL\Tests\Platforms\PostgreSQL100PlatformTest::getIsCommentedDoctrineType() is not static
> 
> /<<PKGBUILDDIR>>/tests/Platforms/PostgreSQL100PlatformTest.php:159
> 
> 9) Doctrine\DBAL\Tests\Platforms\PostgreSQLPlatformTest::testIsCommentedDoctrineType
> The data provider specified for Doctrine\DBAL\Tests\Platforms\PostgreSQLPlatformTest::testIsCommentedDoctrineType is invalid
> Data Provider method Doctrine\DBAL\Tests\Platforms\PostgreSQLPlatformTest::getIsCommentedDoctrineType() is not static
> 
> /<<PKGBUILDDIR>>/tests/Platforms/PostgreSQLPlatformTest.php:159
> 
> 10) Doctrine\DBAL\Tests\Platforms\SQLServerPlatformTest::testIsCommentedDoctrineType
> The data provider specified for Doctrine\DBAL\Tests\Platforms\SQLServerPlatformTest::testIsCommentedDoctrineType is invalid
> Data Provider method Doctrine\DBAL\Tests\Platforms\SQLServerPlatformTest::getIsCommentedDoctrineType() is not static
> 
> /<<PKGBUILDDIR>>/tests/Platforms/SQLServerPlatformTest.php:159
> 
> 11) Doctrine\DBAL\Tests\Platforms\SqlitePlatformTest::testIsCommentedDoctrineType
> The data provider specified for Doctrine\DBAL\Tests\Platforms\SqlitePlatformTest::testIsCommentedDoctrineType is invalid
> Data Provider method Doctrine\DBAL\Tests\Platforms\SqlitePlatformTest::getIsCommentedDoctrineType() is not static
> 
> /<<PKGBUILDDIR>>/tests/Platforms/SqlitePlatformTest.php:159
> 
> --
> 
...
> 
> There were 4 errors:
> 
> 1) Doctrine\DBAL\Tests\Functional\Schema\SqliteSchemaManagerTest::testListForeignKeysFromExistingDatabase
> Doctrine\DBAL\Exception\TableExistsException: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1 table user already exists
> 
> /<<PKGBUILDDIR>>/Doctrine/DBAL/Driver/API/SQLite/ExceptionConverter.php:56
> /<<PKGBUILDDIR>>/Doctrine/DBAL/Connection.php:1943
> /<<PKGBUILDDIR>>/Doctrine/DBAL/Connection.php:1885
> /<<PKGBUILDDIR>>/Doctrine/DBAL/Connection.php:1213
> /<<PKGBUILDDIR>>/tests/Functional/Schema/SqliteSchemaManagerTest.php:54
> 
> Caused by
> Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000]: General error: 1 table user already exists
> 
> /<<PKGBUILDDIR>>/Doctrine/DBAL/Driver/PDO/Exception.php:28
> /<<PKGBUILDDIR>>/Doctrine/DBAL/Driver/PDO/Connection.php:39
> /<<PKGBUILDDIR>>/Doctrine/DBAL/Connection.php:1211
> /<<PKGBUILDDIR>>/tests/Functional/Schema/SqliteSchemaManagerTest.php:54
> 
> Caused by
> PDOException: SQLSTATE[HY000]: General error: 1 table user already exists
> 
> /<<PKGBUILDDIR>>/Doctrine/DBAL/Driver/PDO/Connection.php:33
> /<<PKGBUILDDIR>>/Doctrine/DBAL/Connection.php:1211
> /<<PKGBUILDDIR>>/tests/Functional/Schema/SqliteSchemaManagerTest.php:54
> 
> 2) Doctrine\DBAL\Tests\Schema\SchemaTest::testVisitsVisitor
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Schema/SchemaTest.php:363
> 
> 3) Doctrine\DBAL\Tests\Schema\SchemaTest::testVisitsNamespaceVisitor
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Schema/SchemaTest.php:398
> 
> 4) Doctrine\DBAL\Tests\Schema\Visitor\DropSchemaSqlCollectorTest::testGetQueriesUsesAcceptedForeignKeys
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Schema/Visitor/DropSchemaSqlCollectorTest.php:31
> 
> --
> 
> 31 tests triggered 31 PHPUnit deprecations:
> 
> 1) Doctrine\DBAL\Tests\ConnectionTest::testEmptyInsert
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/ConnectionTest.php:441
> 
> 2) Doctrine\DBAL\Tests\ConnectionTest::testUpdateWithDifferentColumnsInDataAndIdentifiers
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/ConnectionTest.php:452
> 
> 3) Doctrine\DBAL\Tests\ConnectionTest::testUpdateWithSameColumnInDataAndIdentifiers
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/ConnectionTest.php:493
> 
> 4) Doctrine\DBAL\Tests\ConnectionTest::testUpdateWithIsNull
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/ConnectionTest.php:533
> 
> 5) Doctrine\DBAL\Tests\ConnectionTest::testDeleteWithIsNull
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/ConnectionTest.php:572
> 
> 6) Doctrine\DBAL\Tests\ConnectionTest::testPlatformDetectionIsTriggerOnlyOnceOnRetrievingPlatform
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/ConnectionTest.php:716
> 
> 7) Doctrine\DBAL\Tests\ConnectionTest::testRethrowsOriginalExceptionOnDeterminingPlatformWhenConnectingToNonExistentDatabase
> onConsecutiveCalls() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->onConsecutiveCalls())
> 
> /<<PKGBUILDDIR>>/tests/ConnectionTest.php:877
> 
> 8) Doctrine\DBAL\Tests\Functional\ExceptionTest::testInvalidFieldNameException
> iniSet() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Functional/ExceptionTest.php:200
> 
> 9) Doctrine\DBAL\Tests\Functional\StatementTest::testFetchLongBlob
> iniSet() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Functional/StatementTest.php:89
> 
> 10) Doctrine\DBAL\Tests\Schema\Visitor\CreateSchemaSqlCollectorTest::testAcceptsNamespaceDoesNotSupportSchemas
> MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Schema/Visitor/CreateSchemaSqlCollectorTest.php:45
> 
> 11) Doctrine\DBAL\Tests\Schema\Visitor\CreateSchemaSqlCollectorTest::testAcceptsNamespaceSupportsSchemas
> MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Schema/Visitor/CreateSchemaSqlCollectorTest.php:55
> 
> 12) Doctrine\DBAL\Tests\Schema\Visitor\CreateSchemaSqlCollectorTest::testAcceptsTable
> MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Schema/Visitor/CreateSchemaSqlCollectorTest.php:65
> 
> 13) Doctrine\DBAL\Tests\Schema\Visitor\CreateSchemaSqlCollectorTest::testAcceptsForeignKeyDoesNotSupportForeignKeyConstraints
> MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Schema/Visitor/CreateSchemaSqlCollectorTest.php:74
> 
> 14) Doctrine\DBAL\Tests\Schema\Visitor\CreateSchemaSqlCollectorTest::testAcceptsForeignKeySupportsForeignKeyConstraints
> MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Schema/Visitor/CreateSchemaSqlCollectorTest.php:87
> 
> 15) Doctrine\DBAL\Tests\Schema\Visitor\CreateSchemaSqlCollectorTest::testAcceptsSequences
> MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Schema/Visitor/CreateSchemaSqlCollectorTest.php:100
> 
> 16) Doctrine\DBAL\Tests\Schema\Visitor\CreateSchemaSqlCollectorTest::testResetsQueries
> MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Schema/Visitor/CreateSchemaSqlCollectorTest.php:109
> 
> 17) Doctrine\DBAL\Tests\Schema\Visitor\DropSchemaSqlCollectorTest::testGetQueriesUsesAcceptedForeignKeys
> MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Schema/Visitor/DropSchemaSqlCollectorTest.php:15
> 
> 18) Doctrine\DBAL\Tests\Schema\Visitor\DropSchemaSqlCollectorTest::testGivenForeignKeyWithZeroLengthAcceptForeignKeyThrowsException
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Schema/Visitor/DropSchemaSqlCollectorTest.php:61
> 
> 19) Doctrine\DBAL\Tests\Types\BooleanTest::testBooleanConvertsToDatabaseValue
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Types/BooleanTest.php:23
> 
> 20) Doctrine\DBAL\Tests\Types\BooleanTest::testBooleanConvertsToPHPValue
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Types/BooleanTest.php:28
> 
> 21) Doctrine\DBAL\Tests\Types\BooleanTest::testBooleanNullConvertsToPHPValue
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Types/BooleanTest.php:33
> 
> 22) Doctrine\DBAL\Tests\Types\VarDateTimeImmutableTypeTest::testReturnsName
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Types/VarDateTimeImmutableTypeTest.php:28
> 
> 23) Doctrine\DBAL\Tests\Types\VarDateTimeImmutableTypeTest::testReturnsBindingType
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Types/VarDateTimeImmutableTypeTest.php:33
> 
> 24) Doctrine\DBAL\Tests\Types\VarDateTimeImmutableTypeTest::testConvertsDateTimeImmutableInstanceToDatabaseValue
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Types/VarDateTimeImmutableTypeTest.php:38
> 
> 25) Doctrine\DBAL\Tests\Types\VarDateTimeImmutableTypeTest::testConvertsNullToDatabaseValue
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Types/VarDateTimeImmutableTypeTest.php:53
> 
> 26) Doctrine\DBAL\Tests\Types\VarDateTimeImmutableTypeTest::testDoesNotSupportMutableDateTimeToDatabaseValueConversion
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Types/VarDateTimeImmutableTypeTest.php:58
> 
> 27) Doctrine\DBAL\Tests\Types\VarDateTimeImmutableTypeTest::testConvertsDateTimeImmutableInstanceToPHPValue
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Types/VarDateTimeImmutableTypeTest.php:65
> 
> 28) Doctrine\DBAL\Tests\Types\VarDateTimeImmutableTypeTest::testConvertsNullToPHPValue
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Types/VarDateTimeImmutableTypeTest.php:72
> 
> 29) Doctrine\DBAL\Tests\Types\VarDateTimeImmutableTypeTest::testConvertsDateishStringToPHPValue
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Types/VarDateTimeImmutableTypeTest.php:77
> 
> 30) Doctrine\DBAL\Tests\Types\VarDateTimeImmutableTypeTest::testThrowsExceptionDuringConversionToPHPValueWithInvalidDateishString
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Types/VarDateTimeImmutableTypeTest.php:85
> 
> 31) Doctrine\DBAL\Tests\Types\VarDateTimeImmutableTypeTest::testRequiresSQLCommentHint
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Types/VarDateTimeImmutableTypeTest.php:92
> 
> ERRORS!
> Tests: 4195, Assertions: 6299, Errors: 15, Deprecations: 602, Skipped: 776, Incomplete: 5.
> make[1]: *** [debian/rules:29: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-doctrine-dbal/php-doctrine-dbal_3.8.3+dfsg-1+rebuild1714366508_amd64-2024-04-29T04:55:09Z.build



More information about the pkg-php-pear mailing list