1 | <?php |
||
19 | abstract class AbstractControllerTest extends WebTestCase |
||
20 | { |
||
21 | protected static $CONFIG_FILE; |
||
22 | protected static $TEMP_PATH = '/../../tmp/functional/'; |
||
23 | |||
24 | /** |
||
25 | * @var Filesystem |
||
26 | */ |
||
27 | protected static $fileSystem; |
||
28 | /** |
||
29 | * @var Client |
||
30 | */ |
||
31 | protected static $client; |
||
32 | /** |
||
33 | * @var Router |
||
34 | */ |
||
35 | protected static $router; |
||
36 | |||
37 | // |
||
38 | // Helper |
||
39 | // |
||
40 | |||
41 | /** |
||
42 | * @param $uri |
||
43 | * @param $format |
||
44 | * @return \PHPExcel |
||
45 | * @throws \InvalidArgumentException |
||
46 | * @throws \Symfony\Component\Filesystem\Exception\IOException |
||
47 | */ |
||
48 | protected function getDocument($uri, $format = 'xlsx') |
||
78 | |||
79 | // |
||
80 | // PhpUnit |
||
81 | // |
||
82 | |||
83 | /** |
||
84 | * @return array |
||
85 | */ |
||
86 | abstract public function formatProvider(); |
||
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | * @throws \RuntimeException |
||
91 | */ |
||
92 | protected static function createKernel(array $options = []) |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | * @throws \Exception |
||
102 | */ |
||
103 | protected function setUp() |
||
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | * @throws \Exception |
||
112 | */ |
||
113 | public static function setUpBeforeClass() |
||
118 | |||
119 | /** |
||
120 | * {@inheritdoc} |
||
121 | * @throws \Symfony\Component\Filesystem\Exception\IOException |
||
122 | */ |
||
123 | public static function tearDownAfterClass() |
||
129 | } |
||
130 |