comparison vendor/nikic/php-parser/test/PhpParser/ParserFactoryTest.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
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
2 2
3 namespace PhpParser; 3 namespace PhpParser;
4 4
5 /* This test is very weak, because PHPUnit's assertEquals assertion is way too slow dealing with the 5 /* This test is very weak, because PHPUnit's assertEquals assertion is way too slow dealing with the
6 * large objects involved here. So we just do some basic instanceof tests instead. */ 6 * large objects involved here. So we just do some basic instanceof tests instead. */
7 use PHPUnit\Framework\TestCase;
8 7
9 class ParserFactoryTest extends TestCase 8 class ParserFactoryTest extends \PHPUnit\Framework\TestCase
10 { 9 {
11 /** @dataProvider provideTestCreate */ 10 /** @dataProvider provideTestCreate */
12 public function testCreate($kind, $lexer, $expected) { 11 public function testCreate($kind, $lexer, $expected) {
13 $this->assertInstanceOf($expected, (new ParserFactory)->create($kind, $lexer)); 12 $this->assertInstanceOf($expected, (new ParserFactory)->create($kind, $lexer));
14 } 13 }