We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c0ccd commit 233788bCopy full SHA for 233788b
1 file changed
tests/Lexer/ContextTest.php
@@ -6,7 +6,6 @@
6
7
use PhpMyAdmin\SqlParser\Context;
8
use PhpMyAdmin\SqlParser\Tests\TestCase;
9
-use Throwable;
10
11
use function class_exists;
12
@@ -114,11 +113,7 @@ public function contextNamesProvider(): array
114
113
115
public function testLoadError(): void
116
{
117
- $this->expectExceptionMessage(
118
- 'Specified context ("\PhpMyAdmin\SqlParser\Contexts\ContextFoo") does not exist.'
119
- );
120
- $this->expectException(Throwable::class);
121
- Context::load('Foo');
+ $this->assertFalse(Context::load('Foo'));
122
}
123
124
/**
0 commit comments