Skip to content

Commit 38b29a0

Browse files
committed
Revert "Restore tests/rules/UnresolvableQueryMethodRuleTest.php"
This reverts commit 3f62618.
1 parent 6770b21 commit 38b29a0

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

tests/rules/UnresolvableQueryMethodRuleTest.php

+15-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use PHPStan\Testing\RuleTestCase;
99
use staabm\PHPStanDba\QueryReflection\QueryReflection;
1010
use staabm\PHPStanDba\Rules\SyntaxErrorInQueryMethodRule;
11+
use staabm\PHPStanDba\UnresolvableQueryInvalidAfterSimulationException;
1112
use staabm\PHPStanDba\UnresolvableQueryMixedTypeException;
1213
use staabm\PHPStanDba\UnresolvableQueryStringTypeException;
1314

@@ -71,11 +72,23 @@ public function testBug536(): void
7172

7273
public function testBug548(): void
7374
{
74-
$this->analyse([__DIR__ . '/data/bug-548.php'], []);
75+
$this->analyse([__DIR__ . '/data/bug-548.php'], [
76+
[
77+
'Unresolvable Query: Seems the query is too dynamic to be resolved by query simulation.',
78+
10,
79+
UnresolvableQueryInvalidAfterSimulationException::getTip(),
80+
],
81+
]);
7582
}
7683

7784
public function testBug547(): void
7885
{
79-
$this->analyse([__DIR__ . '/data/bug-547.php'], []);
86+
$this->analyse([__DIR__ . '/data/bug-547.php'], [
87+
[
88+
'Unresolvable Query: Seems the query is too dynamic to be resolved by query simulation.',
89+
10,
90+
UnresolvableQueryInvalidAfterSimulationException::getTip(),
91+
],
92+
]);
8093
}
8194
}

0 commit comments

Comments
 (0)