DavidPrevot
Repos
118
Followers
7

Events

closed issue
phpspec/prophecy is now explicitely needed for tests

Hi,

Since PHPUnit dropped phpspec/prophecy from its dependencies (https://github.com/sebastianbergmann/phpunit/issues/5033), the following errors are triggered when running the testsuite with latest PHPUnit with, e.g., Monolog 2.

There were 4 errors:

1) Monolog\Handler\RedisHandlerTest::testPredisHandle
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc.gay1cg9e/downtmp/build.3UJ/src/tests/Monolog/Handler/RedisHandlerTest.php:45

2) Monolog\Handler\RedisPubSubHandlerTest::testPredisHandle
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc.gay1cg9e/downtmp/build.3UJ/src/tests/Monolog/Handler/RedisPubSubHandlerTest.php:47

3) Monolog\LoggerTest::testLog
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc.gay1cg9e/downtmp/build.3UJ/src/tests/Monolog/LoggerTest.php:148

4) Monolog\LoggerTest::testLogNotHandled
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc.gay1cg9e/downtmp/build.3UJ/src/tests/Monolog/LoggerTest.php:164

Regards

David

Created at 1 month ago
issue comment
phpspec/prophecy is now explicitely needed for tests

Apologies, looks like it’s already handled, I messed up between the 2.x and 3.x branches.

Created at 1 month ago
opened issue
phpspec/prophecy is now explicitely needed for tests

Bug Report

Since PHPUnit dropped phpspec/prophecy from its dependencies (https://github.com/sebastianbergmann/phpunit/issues/5033), the following errors are triggered when running the testsuite with latest PHPUnit.

There were 2 errors:

1) Slim\Tests\Http\RequestTest::testGetRequestTargetWithSlimPsr7Uri
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc._6y23c80/downtmp/build.jLX/src/tests/Http/RequestTest.php:458
/usr/bin/phpunit:73

2) Slim\Tests\Http\RequestTest::testGetRequestTargetWithNonSlimPsr7Uri
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc._6y23c80/downtmp/build.jLX/src/tests/Http/RequestTest.php:477
/usr/bin/phpunit:73

Regards

David

Created at 1 month ago
opened issue
phpspec/prophecy is now explicitely needed for tests

Bug Report

Since PHPUnit dropped phpspec/prophecy from its dependencies (https://github.com/sebastianbergmann/phpunit/issues/5033), the following errors are triggered when running the testsuite with latest PHPUnit.

There were 97 errors:

1) EmptyDirPluginTests::testPlugin
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".
[…]

Regards

David

Created at 1 month ago
phpspec/prophecy is now explicitely needed for tests

Hi,

Since PHPUnit dropped phpspec/prophecy from its dependencies (https://github.com/sebastianbergmann/phpunit/issues/5033), the following errors are triggered when running the testsuite with latest PHPUnit.

There were 5 errors:

1) phpmock\phpunit\MockObjectProxyTest::testExpects
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc.hxywsvl5/downtmp/build.90r/src/tests/MockObjectProxyTest.php:40

2) phpmock\phpunit\MockObjectProxyTest::testHasMatcher
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc.hxywsvl5/downtmp/build.90r/src/tests/MockObjectProxyTest.php:99

3) phpmock\phpunit\MockObjectProxyTest::testProxiedMethods with data set #0 ('__phpunit_getInvocationHandler', array(), PHPUnit\Framework\MockObject\InvocationHandler Object (...))
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc.hxywsvl5/downtmp/build.90r/src/tests/MockObjectProxyTest.php:120

4) phpmock\phpunit\MockObjectProxyTest::testProxiedMethods with data set #1 ('__phpunit_setOriginalObject', array('bar'))
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc.hxywsvl5/downtmp/build.90r/src/tests/MockObjectProxyTest.php:120

5) phpmock\phpunit\MockObjectProxyTest::testProxiedMethods with data set #2 ('__phpunit_verify', array(true))
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc.hxywsvl5/downtmp/build.90r/src/tests/MockObjectProxyTest.php:120

Regards

David

Created at 1 month ago
opened issue
phpspec/prophecy is now explicitely needed for tests

Hi,

Since PHPUnit dropped phpspec/prophecy from its dependencies (https://github.com/sebastianbergmann/phpunit/issues/5033), the following errors are triggered when running the testsuite with latest PHPUnit with, e.g., Monolog 2.

There were 4 errors:

1) Monolog\Handler\RedisHandlerTest::testPredisHandle
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc.gay1cg9e/downtmp/build.3UJ/src/tests/Monolog/Handler/RedisHandlerTest.php:45

2) Monolog\Handler\RedisPubSubHandlerTest::testPredisHandle
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc.gay1cg9e/downtmp/build.3UJ/src/tests/Monolog/Handler/RedisPubSubHandlerTest.php:47

3) Monolog\LoggerTest::testLog
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc.gay1cg9e/downtmp/build.3UJ/src/tests/Monolog/LoggerTest.php:148

4) Monolog\LoggerTest::testLogNotHandled
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

/tmp/autopkgtest-lxc.gay1cg9e/downtmp/build.3UJ/src/tests/Monolog/LoggerTest.php:164

Regards

David

Created at 1 month ago
opened issue
phpspec/prophecy is now explicitely needed for tests

Hi,

Since PHPUnit dropped phpspec/prophecy from its dependencies (https://github.com/sebastianbergmann/phpunit/issues/5033), the following error is triggered when running the testsuite with latest PHPUnit.

There was 1 error:

1) Doctrine\Tests\Common\DataFixtures\ReferenceRepositoryTest::testGetIdentifierWhenHasNotBeenManagedYetByUnitOfWork
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

Regards

David

Created at 1 month ago
opened issue
phpspec/prophecy is now explicitely needed for tests

Hi,

Since PHPUnit dropped phpspec/prophecy from its dependencies (https://github.com/sebastianbergmann/phpunit/issues/5033), the following error is triggered when running the testsuite with latest PHPUnit.

There was 1 error:

1) DeepCopyTest\TypeFilter\Spl\ArrayObjectFilterTest::test_it_deep_copies_an_array_object
PHPUnit\Framework\Exception: This test uses TestCase::prophesize(), but phpspec/prophecy is not installed. Please run "composer require --dev phpspec/prophecy".

Regards

David

Created at 1 month ago
issue comment
Be tolerant about line number pointer

The current test is failing with PHP 8.2. Seems like it now points to the line where Deprecation is called, instead of the line providing the error message. https://ci.debian.net/data/autopkgtest/unstable/amd64/p/php-doctrine-deprecations/24284853/log.gz

Created at 1 month ago
pull request opened
Be tolerant about line number pointer

PHP 8.2 related fix.

Created at 1 month ago
create branch
DavidPrevot create branch php82
Created at 1 month ago
Created at 1 month ago
issue comment
allow Predis 2.0

FYI: this change did not make it into main.

Created at 2 months ago
pull request opened
Support recent guzzlehttp/psr7

| Q | A | --------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | License | MIT

What's in this PR?

This allows one to use current guzzlehttp/psr7 for tests.

Created at 2 months ago
DavidPrevot create branch guzzle
Created at 2 months ago