Mercurial > hg > isophonics-drupal-site
diff vendor/nikic/php-parser/test/PhpParser/Builder/InterfaceTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 5fb285c0d0e3 |
children |
line wrap: on
line diff
--- a/vendor/nikic/php-parser/test/PhpParser/Builder/InterfaceTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/nikic/php-parser/test/PhpParser/Builder/InterfaceTest.php Thu Feb 28 13:21:36 2019 +0000 @@ -6,9 +6,8 @@ use PhpParser\Node; use PhpParser\Node\Scalar\DNumber; use PhpParser\Node\Stmt; -use PHPUnit\Framework\TestCase; -class InterfaceTest extends TestCase +class InterfaceTest extends \PHPUnit\Framework\TestCase { /** @var Interface_ */ protected $builder; @@ -79,11 +78,9 @@ ]), $node); } - /** - * @expectedException \LogicException - * @expectedExceptionMessage Unexpected node of type "Stmt_PropertyProperty" - */ public function testInvalidStmtError() { + $this->expectException(\LogicException::class); + $this->expectExceptionMessage('Unexpected node of type "Stmt_PropertyProperty"'); $this->builder->addStmt(new Stmt\PropertyProperty('invalid')); }