diff vendor/nikic/php-parser/test/PhpParser/Parser/MultipleTest.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/Parser/MultipleTest.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/vendor/nikic/php-parser/test/PhpParser/Parser/MultipleTest.php	Thu Feb 28 13:21:36 2019 +0000
@@ -9,8 +9,6 @@
 use PhpParser\Node\Stmt;
 use PhpParser\ParserTest;
 
-require_once __DIR__ . '/../ParserTest.php';
-
 class MultipleTest extends ParserTest
 {
     // This provider is for the generic parser tests, just pick an arbitrary order here
@@ -84,11 +82,11 @@
 
         $parserA = $this->getMockBuilder(\PhpParser\Parser::class)->getMock();
         $parserA->expects($this->at(0))
-            ->method('parse')->will($this->throwException(new Error('FAIL A')));
+            ->method('parse')->willThrowException(new Error('FAIL A'));
 
         $parserB = $this->getMockBuilder(\PhpParser\Parser::class)->getMock();
         $parserB->expects($this->at(0))
-            ->method('parse')->will($this->throwException(new Error('FAIL B')));
+            ->method('parse')->willThrowException(new Error('FAIL B'));
 
         $parser = new Multiple([$parserA, $parserB]);
         $parser->parse('dummy');