[pkg-php-pear] Bug#1070536: php-doctrine-instantiator: FTBFS with phpunit 11: There were 3 PHPUnit errors

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


Source: php-doctrine-instantiator
Version: 2.0.0-2
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-instantiator 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
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
> 
> .......E                                                            8 / 8 (100%)
> 
> Time: 00:00.004, Memory: 8.00 MB
> 
> There were 3 PHPUnit errors:
> 
> 1) DoctrineTest\InstantiatorTest\InstantiatorTest::testCanInstantiate
> The data provider specified for DoctrineTest\InstantiatorTest\InstantiatorTest::testCanInstantiate is invalid
> Data Provider method DoctrineTest\InstantiatorTest\InstantiatorTest::getInstantiableClasses() is not static
> 
> /<<PKGBUILDDIR>>/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php:57
> 
> 2) DoctrineTest\InstantiatorTest\InstantiatorTest::testInstantiatesSeparateInstances
> The data provider specified for DoctrineTest\InstantiatorTest\InstantiatorTest::testInstantiatesSeparateInstances is invalid
> Data Provider method DoctrineTest\InstantiatorTest\InstantiatorTest::getInstantiableClasses() is not static
> 
> /<<PKGBUILDDIR>>/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php:67
> 
> 3) DoctrineTest\InstantiatorTest\InstantiatorTest::testInstantiationFromNonExistingClass
> The data provider specified for DoctrineTest\InstantiatorTest\InstantiatorTest::testInstantiationFromNonExistingClass is invalid
> Data Provider method DoctrineTest\InstantiatorTest\InstantiatorTest::getInvalidClassNames() is not static
> 
> /<<PKGBUILDDIR>>/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php:88
> 
> --
> 
> There were 7 PHPUnit test runner deprecations:
> 
> 1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!
> 
> 2) Metadata found in doc-comment for class DoctrineTest\InstantiatorTest\Exception\InvalidArgumentExceptionTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 3) Metadata found in doc-comment for class DoctrineTest\InstantiatorTest\Exception\UnexpectedValueExceptionTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 4) Metadata found in doc-comment for method DoctrineTest\InstantiatorTest\InstantiatorTest::testCanInstantiate(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 5) Metadata found in doc-comment for class DoctrineTest\InstantiatorTest\InstantiatorTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 6) Metadata found in doc-comment for method DoctrineTest\InstantiatorTest\InstantiatorTest::testInstantiatesSeparateInstances(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 7) Metadata found in doc-comment for method DoctrineTest\InstantiatorTest\InstantiatorTest::testInstantiationFromNonExistingClass(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> --
> 
> There was 1 error:
> 
> 1) DoctrineTest\InstantiatorTest\InstantiatorTest::testInstancesAreNotCloned
> Error: Call to undefined method DoctrineTest\InstantiatorTest\InstantiatorTest::assertObjectNotHasAttribute()
> 
> /<<PKGBUILDDIR>>/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php:116
> 
> ERRORS!
> Tests: 8, Assertions: 11, Errors: 4, Deprecations: 7.
> make[1]: *** [debian/rules:22: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-doctrine-instantiator/php-doctrine-instantiator_2.0.0-2+rebuild1714366639_amd64-2024-04-29T04:57:20Z.build



More information about the pkg-php-pear mailing list