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 = []) |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | * @throws \Exception |
||
106 | */ |
||
107 | protected function setUp() |
||
112 | |||
113 | /** |
||
114 | * {@inheritdoc} |
||
115 | * @throws \Exception |
||
116 | */ |
||
117 | public static function setUpBeforeClass() |
||
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | * @throws \Symfony\Component\Filesystem\Exception\IOException |
||
126 | */ |
||
127 | public static function tearDownAfterClass() |
||
133 | } |
||
134 |