Mercurial > hg > isophonics-drupal-site
diff vendor/nikic/php-parser/test/PhpParser/ConstExprEvaluatorTest.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/ConstExprEvaluatorTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/nikic/php-parser/test/PhpParser/ConstExprEvaluatorTest.php Thu Feb 28 13:21:36 2019 +0000 @@ -4,9 +4,8 @@ use PhpParser\Node\Expr; use PhpParser\Node\Scalar; -use PHPUnit\Framework\TestCase; -class ConstExprEvaluatorTest extends TestCase +class ConstExprEvaluatorTest extends \PHPUnit\Framework\TestCase { /** @dataProvider provideTestEvaluate */ public function testEvaluate($exprString, $expected) { @@ -73,11 +72,9 @@ ]; } - /** - * @expectedException \PhpParser\ConstExprEvaluationException - * @expectedExceptionMessage Expression of type Expr_Variable cannot be evaluated - */ public function testEvaluateFails() { + $this->expectException(ConstExprEvaluationException::class); + $this->expectExceptionMessage('Expression of type Expr_Variable cannot be evaluated'); $evaluator = new ConstExprEvaluator(); $evaluator->evaluateDirectly(new Expr\Variable('a')); }