1 | <?php |
||
10 | class PhpUnit extends Command |
||
11 | { |
||
12 | |||
13 | private $workingDir; |
||
14 | |||
15 | private $target; |
||
16 | |||
17 | private $options; |
||
18 | |||
19 | |||
20 | /** |
||
21 | * Returns working directory. System will switch to this directory before running tests |
||
22 | * @return string |
||
23 | */ |
||
24 | 1 | public function getWorkingDir() |
|
28 | |||
29 | |||
30 | /** |
||
31 | * Sets working directory. System will switch to this directory before running tests |
||
32 | * @param mixed $workingDir |
||
33 | */ |
||
34 | 1 | public function setWorkingDir($workingDir) |
|
38 | |||
39 | |||
40 | /** |
||
41 | * Returns target to be executed. Dir in working directory, dot (current dir), TestFile, etc |
||
42 | * @return mixed |
||
43 | */ |
||
44 | 1 | public function getTarget() |
|
48 | |||
49 | |||
50 | /** |
||
51 | * Sets target to be executed. Dir in working directory, dot (current dir), TestFile, etc |
||
52 | * @param mixed $target |
||
53 | */ |
||
54 | 1 | public function setTarget($target) |
|
58 | |||
59 | |||
60 | /** |
||
61 | * @return array|NULL |
||
62 | */ |
||
63 | 1 | public function getOptions() |
|
67 | |||
68 | |||
69 | /** |
||
70 | * Possible options: |
||
71 | * - executable (mandatory) |
||
72 | * - xdebugExtensionFile |
||
73 | * - configFile |
||
74 | * @param array|NULL $options |
||
75 | */ |
||
76 | 1 | public function setOptions(array $options = NULL) |
|
80 | |||
81 | |||
82 | 1 | public function execute() |
|
119 | |||
120 | } |