summaryrefslogtreecommitdiffstats
path: root/tests/Components/ComponentTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Components/ComponentTest.php')
-rw-r--r--tests/Components/ComponentTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Components/ComponentTest.php b/tests/Components/ComponentTest.php
index ce7c68f..1044289 100644
--- a/tests/Components/ComponentTest.php
+++ b/tests/Components/ComponentTest.php
@@ -7,6 +7,7 @@ use PhpMyAdmin\SqlParser\Component;
use PhpMyAdmin\SqlParser\Parser;
use PhpMyAdmin\SqlParser\Tests\TestCase;
use PhpMyAdmin\SqlParser\TokensList;
+use Throwable;
class ComponentTest extends TestCase
{
@@ -17,14 +18,14 @@ class ComponentTest extends TestCase
public function testParse()
{
$this->expectExceptionMessage('Not implemented yet.');
- $this->expectException(\Exception::class);
+ $this->expectException(Throwable::class);
Component::parse(new Parser(), new TokensList());
}
public function testBuild()
{
$this->expectExceptionMessage('Not implemented yet.');
- $this->expectException(\Exception::class);
+ $this->expectException(Throwable::class);
Component::build(null);
}
}