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