[pkg-php-pear] Bug#1070611: php-webimpress-safe-writer: FTBFS with phpunit 11: There were 4 PHPUnit errors

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:30:34 BST 2024


Source: php-webimpress-safe-writer
Version: 2.2.0-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-webimpress-safe-writer 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
> 
> ......R.                                                            8 / 8 (100%)
> 
> Time: 00:00.004, Memory: 8.00 MB
> 
> There were 4 PHPUnit errors:
> 
> 1) WebimpressTest\SafeWriter\ExceptionTest::testExceptionIsInstanceOfExceptionInterface
> The data provider specified for WebimpressTest\SafeWriter\ExceptionTest::testExceptionIsInstanceOfExceptionInterface is invalid
> Data Provider method WebimpressTest\SafeWriter\ExceptionTest::exception() is not static
> 
> /<<PKGBUILDDIR>>/test/ExceptionTest.php:43
> 
> 2) WebimpressTest\SafeWriter\ExceptionTest::testExceptionIsNotInstantiable
> The data provider specified for WebimpressTest\SafeWriter\ExceptionTest::testExceptionIsNotInstantiable is invalid
> Data Provider method WebimpressTest\SafeWriter\ExceptionTest::exception() is not static
> 
> /<<PKGBUILDDIR>>/test/ExceptionTest.php:53
> 
> 3) WebimpressTest\SafeWriter\FileWriterTest::testCorrectChmodIsSet
> The data provider specified for WebimpressTest\SafeWriter\FileWriterTest::testCorrectChmodIsSet is invalid
> Data Provider method WebimpressTest\SafeWriter\FileWriterTest::permission() is not static
> 
> /<<PKGBUILDDIR>>/test/FileWriterTest.php:61
> 
> 4) WebimpressTest\SafeWriter\FileWriterTest::testMultipleWriters
> The data provider specified for WebimpressTest\SafeWriter\FileWriterTest::testMultipleWriters is invalid
> Data Provider method WebimpressTest\SafeWriter\FileWriterTest::writer() is not static
> 
> /<<PKGBUILDDIR>>/test/FileWriterTest.php:93
> 
> --
> 
> There was 1 PHPUnit test runner warning:
> 
> 1) No tests found in class "WebimpressTest\SafeWriter\ExceptionTest".
> 
> --
> 
> There were 5 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 method WebimpressTest\SafeWriter\ExceptionTest::testExceptionIsInstanceOfExceptionInterface(). 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 method WebimpressTest\SafeWriter\ExceptionTest::testExceptionIsNotInstantiable(). 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 WebimpressTest\SafeWriter\FileWriterTest::testCorrectChmodIsSet(). 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 method WebimpressTest\SafeWriter\FileWriterTest::testMultipleWriters(). 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 risky test:
> 
> 1) WebimpressTest\SafeWriter\FileWriterTest::testUnwritableDirThrowsExceptionWhenUsingCustomErrorHandler
> Test code or tested code did not remove its own error handlers
> 
> /<<PKGBUILDDIR>>/test/FileWriterTest.php:163
> 
> ERRORS!
> Tests: 8, Assertions: 10, Errors: 4, Warnings: 1, Deprecations: 5, Risky: 1.
> make[1]: *** [debian/rules:16: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-webimpress-safe-writer/php-webimpress-safe-writer_2.2.0-1+rebuild1714378551_amd64-2024-04-29T08:15:51Z.build



More information about the pkg-php-pear mailing list