1 | <?php |
||
16 | abstract class BaseFunctionalTest extends WebTestCase |
||
17 | { |
||
18 | protected static $ENVIRONMENT; |
||
19 | protected static $TEMP_PATH; |
||
20 | |||
21 | /** |
||
22 | * @var Filesystem |
||
23 | */ |
||
24 | protected static $fileSystem; |
||
25 | /** |
||
26 | * @var Client |
||
27 | */ |
||
28 | protected static $client; |
||
29 | /** |
||
30 | * @var Router |
||
31 | */ |
||
32 | protected static $router; |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | * |
||
37 | * @throws \Symfony\Component\Filesystem\Exception\IOException |
||
38 | */ |
||
39 | public static function setUpBeforeClass() |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | * |
||
48 | * @throws \Symfony\Component\Filesystem\Exception\IOException |
||
49 | */ |
||
50 | public static function tearDownAfterClass() |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | * |
||
60 | * @throws \Exception |
||
61 | */ |
||
62 | protected function setUp() |
||
67 | |||
68 | // |
||
69 | // PhpUnit |
||
70 | // |
||
71 | |||
72 | /** |
||
73 | * @return array |
||
74 | */ |
||
75 | abstract public function formatProvider(); |
||
76 | |||
77 | // |
||
78 | // Helper |
||
79 | // |
||
80 | |||
81 | /** |
||
82 | * @param string $uri |
||
83 | * @param string $format |
||
84 | * |
||
85 | * @throws \Symfony\Component\Filesystem\Exception\IOException |
||
86 | * |
||
87 | * @return Spreadsheet |
||
88 | */ |
||
89 | protected function getDocument(string $uri, string $format = 'xlsx'): Spreadsheet |
||
106 | } |
||
107 |