Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/var-dumper/Tests/Caster/ExceptionCasterTest.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/symfony/var-dumper/Tests/Caster/ExceptionCasterTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/symfony/var-dumper/Tests/Caster/ExceptionCasterTest.php Thu Feb 28 13:21:36 2019 +0000 @@ -36,7 +36,7 @@ public function testDefaultSettings() { - $ref = array('foo'); + $ref = ['foo']; $e = $this->getTestException('foo', $ref); $expectedDump = <<<'EODUMP' @@ -57,7 +57,7 @@ EODUMP; $this->assertDumpMatchesFormat($expectedDump, $e); - $this->assertSame(array('foo'), $ref); + $this->assertSame(['foo'], $ref); } public function testSeek() @@ -164,21 +164,21 @@ */ public function testFrameWithTwig() { - require_once dirname(__DIR__).'/Fixtures/Twig.php'; + require_once \dirname(__DIR__).'/Fixtures/Twig.php'; - $f = array( - new FrameStub(array( - 'file' => dirname(__DIR__).'/Fixtures/Twig.php', + $f = [ + new FrameStub([ + 'file' => \dirname(__DIR__).'/Fixtures/Twig.php', 'line' => 20, 'class' => '__TwigTemplate_VarDumperFixture_u75a09', - )), - new FrameStub(array( - 'file' => dirname(__DIR__).'/Fixtures/Twig.php', + ]), + new FrameStub([ + 'file' => \dirname(__DIR__).'/Fixtures/Twig.php', 'line' => 21, 'class' => '__TwigTemplate_VarDumperFixture_u75a09', 'object' => new \__TwigTemplate_VarDumperFixture_u75a09(null, __FILE__), - )), - ); + ]), + ]; $expectedDump = <<<'EODUMP' array:2 [