diff options
author | William Desportes <williamdes@wdes.fr> | 2019-09-25 00:24:32 +0200 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2019-09-25 00:24:53 +0200 |
commit | 9798cdd11ce18522a8272c260888f03bba581721 (patch) | |
tree | 8c51bf7cebb6a95b07d8d6009d291e9e41456e0a /tests/Components/ComponentTest.php | |
parent | c9406f4a0ed1220056748d4924a46e367b7f2db1 (diff) | |
download | sql-parser-9798cdd11ce18522a8272c260888f03bba581721.zip sql-parser-9798cdd11ce18522a8272c260888f03bba581721.tar.gz sql-parser-9798cdd11ce18522a8272c260888f03bba581721.tar.bz2 |
Fix deprecated annotations
Ref: #261
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'tests/Components/ComponentTest.php')
-rw-r--r-- | tests/Components/ComponentTest.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/Components/ComponentTest.php b/tests/Components/ComponentTest.php index 2595202..ce7c68f 100644 --- a/tests/Components/ComponentTest.php +++ b/tests/Components/ComponentTest.php @@ -11,22 +11,20 @@ use PhpMyAdmin\SqlParser\TokensList; class ComponentTest extends TestCase { /** - * @expectedException \Exception - * @expectedExceptionMessage Not implemented yet. * @runInSeparateProcess * @preserveGlobalState disabled */ public function testParse() { + $this->expectExceptionMessage('Not implemented yet.'); + $this->expectException(\Exception::class); Component::parse(new Parser(), new TokensList()); } - /** - * @expectedException \Exception - * @expectedExceptionMessage Not implemented yet. - */ public function testBuild() { + $this->expectExceptionMessage('Not implemented yet.'); + $this->expectException(\Exception::class); Component::build(null); } } |