Code Monkey home page Code Monkey logo

Comments (3)

florentdestremau avatar florentdestremau commented on June 10, 2024 1

Thanks, it works indeed. The docs of Symfony Panther are not up-to-date, so I thank this issue is valid even from the configuration standpoint.

@dunglas do you have an ETA on the next release for this package ? This is a blocking bug for any configuration as far as I understand.

from panther.

driehle avatar driehle commented on June 10, 2024 1

Release 2.1.1 has been made by @dunglas on Dec 3rd. This solves the issue:

With 2.1.0:

$ composer test
> phpunit
PHPUnit 10.5.0 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.1.13
Configuration: /var/www/phpunit.xml.dist

............                                                      12 / 12 (100%)

Time: 00:10.290, Memory: 30.00 MB

There were 24 PHPUnit test runner warnings:

1) Exception in third-party event subscriber: Too few arguments to function Symfony\Component\Panther\ServerExtensionLegacy::executeBeforeTest(), 0 passed in /var/www/vendor/symfony/panther/src/ServerExtension.php on line 81 and exactly 1 expected
[...]

With 2.1.1:

$ composer update symfony/panther
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
  - Upgrading symfony/panther (v2.1.0 => v2.1.1)
Writing lock file
[...]
$ composer test
> phpunit
PHPUnit 10.5.0 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.1.13
Configuration: /var/www/phpunit.xml.dist

............                                                      12 / 12 (100%)

Time: 00:09.515, Memory: 30.00 MB

OK (12 tests, 31 assertions)

This ticket can be closed.

from panther.

driehle avatar driehle commented on June 10, 2024

This seems to be related to #608 and has already been fixed with #609, but didn't make it into a release so far.

I had the same error and can confirm that changing it to <bootstrap class="Symfony\Component\Panther\ServerExtension"/> and requirering a develement version with "symfony/panther": "dev-main#077a68c" via composer solves the issue.

from panther.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.