1 | <?php |
||
11 | class PHPUnitConfig |
||
12 | { |
||
13 | const DEFAULT_FILE_NAME = 'phpunit.xml.dist'; |
||
14 | |||
15 | /** @var string */ |
||
16 | private $configFilename; |
||
17 | |||
18 | /** @var PHPUnitOption[] */ |
||
19 | private $phpunitOptions; |
||
20 | |||
21 | /** |
||
22 | * @param string $inputPathOrFileName |
||
23 | * @throws \InvalidArgumentException |
||
24 | */ |
||
25 | 45 | public function __construct(string $inputPathOrFileName) |
|
30 | |||
31 | /** |
||
32 | * @return string The full path for this configuration file |
||
33 | */ |
||
34 | 42 | public function getFileFullPath(): string |
|
38 | |||
39 | /** |
||
40 | * @return string The relative path from where the configuration defines the testsuites |
||
41 | */ |
||
42 | 42 | public function getBaseDirectory(): string |
|
46 | |||
47 | /** |
||
48 | * @param PHPUnitOption $option |
||
49 | */ |
||
50 | 5 | public function addPhpunitOption(PHPUnitOption $option) |
|
54 | |||
55 | /** |
||
56 | * @return PHPUnitOption[] |
||
57 | */ |
||
58 | 40 | public function getPhpunitOptions(): array |
|
62 | |||
63 | /** |
||
64 | * @param string $inputPathOrFileName |
||
65 | * @return string |
||
66 | * @throws \InvalidArgumentException |
||
67 | */ |
||
68 | 45 | private function getConfigFileRealpath(string $inputPathOrFileName): string |
|
86 | } |
||
87 |