diff options
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); } } |