X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fvar-dumper%2FTests%2FFixtures%2FTwig.php;fp=vendor%2Fsymfony%2Fvar-dumper%2FTests%2FFixtures%2FTwig.php;h=9eaa39c88909ce67602a8c78c59b0bb6d4c8ace8;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/symfony/var-dumper/Tests/Fixtures/Twig.php b/vendor/symfony/var-dumper/Tests/Fixtures/Twig.php new file mode 100644 index 000000000..9eaa39c88 --- /dev/null +++ b/vendor/symfony/var-dumper/Tests/Fixtures/Twig.php @@ -0,0 +1,38 @@ +parent = false; + $this->blocks = array(); + $this->filename = $filename; + } + + protected function doDisplay(array $context, array $blocks = array()) + { + // line 2 + throw new \Exception('Foobar'); + } + + public function getTemplateName() + { + return 'foo.twig'; + } + + public function getDebugInfo() + { + return array(21 => 2); + } + + public function getSourceContext() + { + return new Twig_Source(" foo bar\n twig source\n\n", 'foo.twig', false === $this->filename ? null : ($this->filename ?: 'bar.twig')); + } +}