[pkg-php-pear] Bug#1070617: phpab: FTBFS with phpunit 11: Data Provider method TheSeer\Autoload\Tests\PathComparatorTest::directoriesProvider() is not static

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:31:23 BST 2024


Source: phpab
Version: 1.29.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,
phpab 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 was 1 PHPUnit error:
> 
> 1) TheSeer\Autoload\Tests\PathComparatorTest::testComparatorYieldsCorrectCommonBase
> The data provider specified for TheSeer\Autoload\Tests\PathComparatorTest::testComparatorYieldsCorrectCommonBase is invalid
> Data Provider method TheSeer\Autoload\Tests\PathComparatorTest::directoriesProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/PathComparatorTest.php:12
> 
> --
> 
> There was 1 PHPUnit test runner warning:
> 
> 1) No tests found in class "TheSeer\Autoload\Tests\PathComparatorTest".
> 
> --
> 
> There were 16 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 TheSeer\Autoload\Tests\AutoloadRendererTest::testDefaultRendering(). 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 TheSeer\Autoload\Tests\AutoloadRendererTest::testWindowsLFRendering(). 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 TheSeer\Autoload\Tests\AutoloadRendererTest::testSettingAndGettingLinebreakWorks(). 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 TheSeer\Autoload\Tests\AutoloadRendererTest::testIndentWithTabsRendering(). 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 TheSeer\Autoload\Tests\AutoloadRendererTest::testSetBaseDirRendering(). 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 TheSeer\Autoload\Tests\AutoloadRendererTest::testRenderingInCompatMode(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 8) Metadata found in doc-comment for method TheSeer\Autoload\Tests\AutoloadRendererTest::testRelativeSubBaseDirRendering(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 9) Metadata found in doc-comment for method TheSeer\Autoload\Tests\AutoloadRendererTest::testSettingDateTimeFormat(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 10) Metadata found in doc-comment for method TheSeer\Autoload\Tests\AutoloadRendererTest::testSetVariable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 11) Metadata found in doc-comment for method TheSeer\Autoload\Tests\AutoloadRendererTest::testGetUniqueReproducibleValueForAutoloadName(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 12) Metadata found in doc-comment for method TheSeer\Autoload\Tests\AutoloadRendererTest::testGetUniqueValueForAutoloadName(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 13) Metadata found in doc-comment for method TheSeer\Autoload\Tests\AutoloadRendererTest::testSetCompatMode(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 14) Metadata found in doc-comment for method TheSeer\Autoload\Tests\ParserTest::testCanParseSimpleEnums(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 15) Metadata found in doc-comment for method TheSeer\Autoload\Tests\ParserTest::testCanParseBackedEnums(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 16) Metadata found in doc-comment for method TheSeer\Autoload\Tests\PathComparatorTest::testComparatorYieldsCorrectCommonBase(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> ERRORS!
> Tests: 84, Assertions: 165, Errors: 1, Warnings: 1, Deprecations: 16.
> make[1]: *** [debian/rules:27: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/phpab/phpab_1.29.0-2+rebuild1714364963_amd64-2024-04-29T04:29:24Z.build



More information about the pkg-php-pear mailing list