Mercurial > hg > isophonics-drupal-site
diff vendor/nikic/php-parser/test/PhpParser/PrettyPrinterTest.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 5fb285c0d0e3 |
children | 129ea1e6d783 |
line wrap: on
line diff
--- a/vendor/nikic/php-parser/test/PhpParser/PrettyPrinterTest.php Thu Apr 26 11:26:54 2018 +0100 +++ b/vendor/nikic/php-parser/test/PhpParser/PrettyPrinterTest.php Tue Jul 10 15:07:59 2018 +0100 @@ -209,6 +209,16 @@ } /** + * @expectedException \LogicException + * @expectedExceptionMessage Cannot directly print EncapsedStringPart + */ + public function testPrettyPrintEncapsedStringPart() { + $expr = new Node\Scalar\EncapsedStringPart('foo'); + $prettyPrinter = new PrettyPrinter\Standard; + $prettyPrinter->prettyPrintExpr($expr); + } + + /** * @dataProvider provideTestFormatPreservingPrint * @covers \PhpParser\PrettyPrinter\Standard<extended> */