1 | <?php |
||
22 | abstract class AbstractTwigTest extends PHPUnit_Framework_TestCase |
||
23 | { |
||
24 | protected static $TEMP_PATH = '/../../tmp/'; |
||
25 | protected static $RESOURCE_PATH = '/../Resources/views/'; |
||
26 | protected static $TEMPLATE_PATH = '/../Resources/templates/'; |
||
27 | |||
28 | /** |
||
29 | * @var Filesystem |
||
30 | */ |
||
31 | protected static $fileSystem; |
||
32 | /** |
||
33 | * @var Twig_Environment |
||
34 | */ |
||
35 | protected static $environment; |
||
36 | |||
37 | // |
||
38 | // Helper |
||
39 | // |
||
40 | |||
41 | /** |
||
42 | * @param string $templateName |
||
43 | * @param string $format |
||
44 | * @return \PHPExcel|string |
||
45 | * @throws \Twig_Error_Syntax |
||
46 | * @throws \Twig_Error_Loader |
||
47 | * @throws \Symfony\Component\Filesystem\Exception\IOException |
||
48 | * @throws \InvalidArgumentException |
||
49 | */ |
||
50 | protected function getDocument($templateName, $format) |
||
92 | |||
93 | // |
||
94 | // PhpUnit |
||
95 | // |
||
96 | |||
97 | /** |
||
98 | * @return array |
||
99 | */ |
||
100 | abstract public function formatProvider(); |
||
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | * @throws \Twig_Error_Loader |
||
105 | */ |
||
106 | public static function setUpBeforeClass() |
||
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | * @throws \Symfony\Component\Filesystem\Exception\IOException |
||
121 | */ |
||
122 | public static function tearDownAfterClass() |
||
128 | } |
||
129 |