Source: php-phpspec-prophecy-phpunit Version: 2.0.2-2 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: pkg-php-p...@lists.alioth.debian.org Usertags: phpunit
Hi, We will start the phpunit 10 transition in unstable soon. During a test rebuild, php-phpspec-prophecy-phpunit was found to FTBFS. To reproduce this locally, you need to install the phpunit 10 package (and any other dependency, which should also be available) from experimental on an unstable system or build chroot. Relevant part (hopefully): > make[1]: Entering directory '/<<PKGBUILDDIR>>' > phpunit > PHPUnit 10.2.2 by Sebastian Bergmann and contributors. > > Runtime: PHP 8.2.7 > Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist > > FFFFF 5 / 5 > (100%) > > Time: 00:00.094, Memory: 6.00 MB > > There was 1 PHPUnit test runner deprecation: > > 1) Your XML configuration validates against a deprecated schema. Migrate your > XML configuration using "--migrate-configuration"! > > -- > > There were 5 failures: > > 1) /<<PKGBUILDDIR>>/tests/MockFailure.phpt > Failed asserting that string matches format description. > --- Expected > +++ Actual > @@ @@ > -PHPUnit %s > - > -F %s 1 / 1 (100%) > - > -Time: %s > - > -There was 1 failure: > - > -1) Prophecy\PhpUnit\Tests\Fixtures\MockFailure::testMethod > -Some predictions failed: > -Double\DateTime\P1: > - Expected exactly 2 calls that match: > - Double\DateTime\P1->format(exact("Y-m-d")) > - but 1 were made: > - - format("Y-m-d") @ fixtures/MockFailure.php:%d > - > -%s/ProphecyTrait.php:%d > -%s/tests/run_test.php:%d > - > -FAILURES! > -Tests: 1, Assertions: 1, Failures: 1. > +Fatal error: Uncaught Error: Class "PHPUnit\TextUI\Command" not found in > /<<PKGBUILDDIR>>/tests/run_test.php:17 > +Stack trace: > +#0 Standard input code(5): Prophecy\PhpUnit\Tests\runTest() > +#1 {main} > + thrown in /<<PKGBUILDDIR>>/tests/run_test.php on line 17 > > /<<PKGBUILDDIR>>/tests/MockFailure.phpt:10 > > 2) /<<PKGBUILDDIR>>/tests/NoProphecy.phpt > Failed asserting that string matches format description. > --- Expected > +++ Actual > @@ @@ > -PHPUnit %s > - > -. %s 1 / 1 (100%) > - > -Time: %s > - > -OK (1 test, 1 assertion) > +Fatal error: Uncaught Error: Class "PHPUnit\TextUI\Command" not found in > /<<PKGBUILDDIR>>/tests/run_test.php:17 > +Stack trace: > +#0 Standard input code(5): Prophecy\PhpUnit\Tests\runTest() > +#1 {main} > + thrown in /<<PKGBUILDDIR>>/tests/run_test.php on line 17 > > /<<PKGBUILDDIR>>/tests/NoProphecy.phpt:10 > > 3) /<<PKGBUILDDIR>>/tests/SpyFailure.phpt > Failed asserting that string matches format description. > --- Expected > +++ Actual > @@ @@ > -PHPUnit %s > - > -F %s 1 / 1 (100%) > - > -Time: %a > - > -There was 1 failure: > - > -1) Prophecy\PhpUnit\Tests\Fixtures\SpyFailure::testMethod > -No calls have been made that match: > - Double\DateTime\P1->format(exact("Y-m-d")) > -but expected at least one. > - > -%s/tests/run_test.php:%d > - > -FAILURES! > -Tests: 1, Assertions: 1, Failures: 1. > +Fatal error: Uncaught Error: Class "PHPUnit\TextUI\Command" not found in > /<<PKGBUILDDIR>>/tests/run_test.php:17 > +Stack trace: > +#0 Standard input code(5): Prophecy\PhpUnit\Tests\runTest() > +#1 {main} > + thrown in /<<PKGBUILDDIR>>/tests/run_test.php on line 17 > > /<<PKGBUILDDIR>>/tests/SpyFailure.phpt:10 > > 4) /<<PKGBUILDDIR>>/tests/Success.phpt > Failed asserting that string matches format description. > --- Expected > +++ Actual > @@ @@ > -PHPUnit %s > - > -. %s 1 / 1 (100%) > - > -Time: %s > - > -OK (1 test, 1 assertion) > +Fatal error: Uncaught Error: Class "PHPUnit\TextUI\Command" not found in > /<<PKGBUILDDIR>>/tests/run_test.php:17 > +Stack trace: > +#0 Standard input code(5): Prophecy\PhpUnit\Tests\runTest() > +#1 {main} > + thrown in /<<PKGBUILDDIR>>/tests/run_test.php on line 17 > > /<<PKGBUILDDIR>>/tests/Success.phpt:10 > > 5) /<<PKGBUILDDIR>>/tests/WrongCall.phpt > Failed asserting that string matches format description. > --- Expected > +++ Actual > @@ @@ > -PHPUnit %s > - > -E %s 1 / 1 (100%) > - > -Time: %a > - > -There was 1 error: > - > -1) Prophecy\PhpUnit\Tests\Fixtures\WrongCall::testMethod > -Prophecy\Exception\Doubler\MethodNotFoundException: Method > `Double\stdClass\P1::talk()` is not defined. > - > -%a%s/fixtures/WrongCall.php:%d > -%s/tests/run_test.php:%d > - > -ERRORS! > -Tests: 1, Assertions: 0, Errors: 1. > +Fatal error: Uncaught Error: Class "PHPUnit\TextUI\Command" not found in > /<<PKGBUILDDIR>>/tests/run_test.php:17 > +Stack trace: > +#0 Standard input code(5): Prophecy\PhpUnit\Tests\runTest() > +#1 {main} > + thrown in /<<PKGBUILDDIR>>/tests/run_test.php on line 17 > > /<<PKGBUILDDIR>>/tests/WrongCall.phpt:10 > > FAILURES! > Tests: 5, Assertions: 5, Failures: 5, Deprecations: 1. > make[1]: *** [debian/rules:21: override_dh_auto_test] Error 1 The full build logs and additional context is available at http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/0/php-phpspec-prophecy-phpunit/ A phpunit reverse-dependencies rebuild status is available at http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/index.html -- Athos Ribeiro