Skip to content

Commit

Permalink
Skip unreliable test
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Feb 23, 2023
1 parent fcb67c2 commit 392868f
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions tests/Type/Doctrine/Query/QueryResultTypeWalkerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1274,33 +1274,35 @@ public function getTestData(): iterable
',
];

yield 'locate function' => [
$this->constantArray([
[new ConstantIntegerType(1), $this->uintStringified()],
[new ConstantIntegerType(2), TypeCombinator::addNull($this->uintStringified())],
[new ConstantIntegerType(3), TypeCombinator::addNull($this->uintStringified())],
[new ConstantIntegerType(4), $this->uintStringified()],
]),
'
if (PHP_VERSION_ID > 70300) {
yield 'locate function' => [
$this->constantArray([
[new ConstantIntegerType(1), $this->uintStringified()],
[new ConstantIntegerType(2), TypeCombinator::addNull($this->uintStringified())],
[new ConstantIntegerType(3), TypeCombinator::addNull($this->uintStringified())],
[new ConstantIntegerType(4), $this->uintStringified()],
]),
'
SELECT LOCATE(m.stringColumn, m.stringColumn, 0),
LOCATE(m.stringNullColumn, m.stringColumn, 0),
LOCATE(m.stringColumn, m.stringNullColumn, 0),
LOCATE(\'f\', \'foo\', 0)
FROM QueryResult\Entities\Many m
',
null,
InstalledVersions::satisfies(new VersionParser(), 'doctrine/dbal', '>=3.4')
? null
: (
null,
InstalledVersions::satisfies(new VersionParser(), 'doctrine/dbal', '>=3.4')
? null
: (
PHP_VERSION_ID >= 80100
? 'strpos(): Passing null to parameter #2 ($needle) of type string is deprecated'
: (
PHP_VERSION_ID >= 70300 && PHP_VERSION_ID < 80000
? 'strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior'
: null
)
),
];
PHP_VERSION_ID >= 70300 && PHP_VERSION_ID < 80000
? 'strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior'
: null
)
),
];
}

yield 'lower function' => [
$this->constantArray([
Expand Down

0 comments on commit 392868f

Please sign in to comment.