Return case insensitive check#8591
Conversation
|
@Warxcell please review |
|
Yeah, seems we missed the case with lower case keywords. And there were no tests that could catch it. :( |
|
I tried restoring the source code and running the test suite, and the test suite did not fail, because the test class, is not suffixed with |
./vendor/bin/phpunit tests/Doctrine/Tests/ORM/Functional/QueryBuilderParenthesis.php .. 2 / 2 (100%) Time: 00:00.063, Memory: 12.00 MB OK (2 tests, 4 assertions) So phpunit have different behaviour depending on how you run it? That's bad :( It should tell me that this is not valid test IMO. |
|
Yup… kinda weird that my last commit does not result in an increase in coverage. I have to go for now but I've started working on a UPD: here is a legible input with a legible output: |
It makes tests more isolated from each other: another test relying on some tables including some of the ones created here may fail creating the tables it needs because they already exist.
3c9bad8 to
11b0bc2
Compare
|
I don't reproduce the test failure locally 😬 |
They will not be taken into account when running vendor/bin/phpunit otherwise.
202d0d3 to
97f8325
Compare
|
Let's treat that one separately, I'll open another PR for it. |
|
Thanks @DmitriiBezborodnikov ! |
Return insensitive check after #8453
Problem:
->andWhere("u.name = ?1 or u.username = ?1");did not wrap part in parenthesis whenororandwas written in lowercase anymore. It still worked for uppercaseORandAND.Fixes #8595