Source: php-zend-code
Version: 4.13.0-2
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-p...@lists.alioth.debian.org
Usertags: phpunit11

Hi,

phpunit 11 is out and is now available in experimental. During a test rebuild,
php-zend-code 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 181 PHPUnit test runner deprecations:
...
> 
> --
> 
> There was 1 error:
> 
> 1) 
> LaminasTest\Code\Generic\Prototype\PrototypeClassFactoryTest::testSetNameOnGenericIsCalledOnce
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\MockBuilder::setMethods()
> 
> /<<PKGBUILDDIR>>/test/Generic/Prototype/PrototypeClassFactoryTest.php:48
> 
> --
> 
> 6 tests triggered 6 PHPUnit deprecations:
> 
> 1) LaminasTest\Code\Generator\AbstractGeneratorTest::testConstructor
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 
> without replacement.
> 
> /<<PKGBUILDDIR>>/test/Generator/AbstractGeneratorTest.php:16
> 
> 2) 
> LaminasTest\Code\Generator\AbstractGeneratorTest::testSetOptionsThrowsExceptionOnInvalidArgument
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 
> without replacement.
> 
> /<<PKGBUILDDIR>>/test/Generator/AbstractGeneratorTest.php:28
> 
> 3) 
> LaminasTest\Code\Generator\AbstractMemberGeneratorTest::testSetFlagsWithArray
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 
> without replacement.
> 
> /<<PKGBUILDDIR>>/test/Generator/AbstractMemberGeneratorTest.php:21
> 
> 4) 
> LaminasTest\Code\Generator\AbstractMemberGeneratorTest::testSetDocBlockThrowsExceptionWithInvalidType
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 
> without replacement.
> 
> /<<PKGBUILDDIR>>/test/Generator/AbstractMemberGeneratorTest.php:34
> 
> 5) LaminasTest\Code\Generator\AbstractMemberGeneratorTest::testRemoveDocBlock
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 
> without replacement.
> 
> /<<PKGBUILDDIR>>/test/Generator/AbstractMemberGeneratorTest.php:40
> 
> 6) 
> LaminasTest\Code\Generator\AbstractMemberGeneratorTest::testRemoveDocBlockIsIdempotent
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 
> without replacement.
> 
> /<<PKGBUILDDIR>>/test/Generator/AbstractMemberGeneratorTest.php:49
> 
> ERRORS!
> Tests: 1195, Assertions: 1730, Errors: 1, Deprecations: 187, Skipped: 3.
> make[1]: *** [debian/rules:18: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-zend-code/php-zend-code_4.13.0-2+rebuild1714378608_amd64-2024-04-29T08:16:49Z.build

Reply via email to