Version 1
[yaffs-website] / vendor / symfony / var-dumper / Tests / Fixtures / Twig.php
diff --git a/vendor/symfony/var-dumper/Tests/Fixtures/Twig.php b/vendor/symfony/var-dumper/Tests/Fixtures/Twig.php
new file mode 100644 (file)
index 0000000..9eaa39c
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+
+/* foo.twig */
+class __TwigTemplate_VarDumperFixture_u75a09 extends Twig_Template
+{
+    private $filename;
+
+    public function __construct(Twig_Environment $env = null, $filename = null)
+    {
+        if (null !== $env) {
+            parent::__construct($env);
+        }
+        $this->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'));
+    }
+}