Giter VIP home page Giter VIP logo

Comments (10)

dkarlovi avatar dkarlovi commented on June 5, 2024 2

@sanmai I can confirm it was fixed! 🍾

from infection.

dkarlovi avatar dkarlovi commented on June 5, 2024 1

Ah, nevermind, you're already doing that. It seems the bugfix will not be terrible, just need to adjust the behaviour to match what PHPUnit is doing

  1. numeric #X
  2. else "X"

from infection.

dkarlovi avatar dkarlovi commented on June 5, 2024

One thing that might be a nice addition to prevent regressions: Infection knows how many tests it expects to run with the --filter, if it runs fewer, the filter is invalid. Maybe it could be added to the test suite?

from infection.

sanmai avatar sanmai commented on June 5, 2024

Commit with the change from PHPUnit:
sebastianbergmann/phpunit@c8ec808

from infection.

sanmai avatar sanmai commented on June 5, 2024

Sounds like we hardcode the quoted option:

if (count($methodNameParts) > 1) {
$methodName = $methodNameParts[0];
$dataProviderKey = $methodNameParts[1];
$methodNameWithDataProviderResult = sprintf('%s with data set "%s"', $methodName, $dataProviderKey);
}

Where PHPUnit expects either quoted or has-prefixed variant.

from infection.

dkarlovi avatar dkarlovi commented on June 5, 2024

The annoying part is this is now versioned, PHPUnit 10+ expects the new behaviour. :| You'd need to detect which version it is and change it.

from infection.

maks-rafalko avatar maks-rafalko commented on June 5, 2024

Thanks for the bug report and details!

Personally, I won't be able to look into this until the weekend. So feel free to help/fix it if you need it quicker.

from infection.

sidz avatar sidz commented on June 5, 2024

Fixed in #1900

from infection.

maks-rafalko avatar maks-rafalko commented on June 5, 2024

Released https://github.com/infection/infection/releases/tag/0.27.9

from infection.

sanmai avatar sanmai commented on June 5, 2024

@dkarlovi Can you confirm we fixed it?

from infection.

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.