New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Assert.php line 2042: Expected a value other than null. #1357
Comments
Hi, after cloning this repository, I can't successfully run phpunit and get:
There is nothing special in the Unit Testing section https://github.com/yiisoft/active-record#unit-testing, only a note about sqlite3 which is enabled on my machine. Any hints hot to run phpunit successfuly (to be able to run Infection)? Should I run any docker containers as it's done in GH actions? |
Hi, please run: vendor/bin/phpunit --group sqlite Since recently the repository was updated and now the complete set runs the tests of redis, mysql, pgsql, mssql, sqlite, i must update the note in the README.md. Should I run any docker containers as it's done in GH actions? if you want to run the entire test set if you must configure all containers. |
Apparently it's a bug in ArrayItemRemoval. Here's a stack trace for the error:
|
I can reproduce it. Check out the project, install deps, then:
|
Problematic line looks like this: [, $alias] = $this->getTableNameAndAlias(); |
Thks, @maks-rafalko and @sanmai for your great help. |
Released as 0.18.1. Thank you @terabytesoftw & @sanmai |
I am getting this error again as I upgraded from 0.20 to 0.21 |
Please, provide a reproducible code example. Also, we have a Playground so if an example is simple, you can create it there |
I get this error too. I'm a brand new user and have infection/infection 0.21.0@dfacb1e3d9def7fd34c6fb8df4d4bd098815dc82 PHPUnit version 8.5.14 PHP 7.4.15 Xdebug 3.0.2 codebase is CakePHP 4.2.2.
|
It looks like this issue is project-specific, I mean that Infection is broken on the code from your project, but not for any code. Can I ask you trying to find the file (and line of the code ideally) that breaks Infection? if you mutate Also, could you please run Infection with So, I installed PHP 7.4.15, Xdebug 3.0.2 and PHPUnit 8.5.14 - exactly as you have - and I can't reproduce the issue. So I need your help with identifying the exactly line of code that breaks Infection |
Hi, we also tried to run an infection on the project, but got this error.
Env: |
That looks like #1480 |
Please try 0.21.3 |
The text was updated successfully, but these errors were encountered: