1 | <?php |
||
35 | class RoboFile extends AbstractRoboFile |
||
|
|||
36 | { |
||
37 | |||
38 | /** |
||
39 | * Load the libraries tasks. |
||
40 | * |
||
41 | * @param \AppserverIo\RoboTasks\Base\loadTasks |
||
42 | */ |
||
43 | use loadTasks; |
||
44 | |||
45 | /** |
||
46 | * Run's the composer install command. |
||
47 | * |
||
48 | * @return void |
||
49 | */ |
||
50 | public function composerInstall() |
||
58 | |||
59 | /** |
||
60 | * Run's the composer update command. |
||
61 | * |
||
62 | * @return void |
||
63 | */ |
||
64 | public function composerUpdate() |
||
72 | |||
73 | /** |
||
74 | * Clean up the environment for a new build. |
||
75 | * |
||
76 | * @return void |
||
77 | */ |
||
78 | public function clean() |
||
82 | |||
83 | /** |
||
84 | * Prepare's the environment for a new build. |
||
85 | * |
||
86 | * @return void |
||
87 | */ |
||
88 | public function prepare() |
||
96 | |||
97 | /** |
||
98 | * Run's the PHPMD. |
||
99 | * |
||
100 | * @return void |
||
101 | */ |
||
102 | public function runMd() |
||
115 | |||
116 | /** |
||
117 | * Run's the PHPCPD. |
||
118 | * |
||
119 | * @return void |
||
120 | */ |
||
121 | public function runCpd() |
||
134 | |||
135 | /** |
||
136 | * Run's the PHPCodeSniffer. |
||
137 | * |
||
138 | * @return void |
||
139 | */ |
||
140 | public function runCs() |
||
153 | |||
154 | /** |
||
155 | * Run's the PHPUnit tests. |
||
156 | * |
||
157 | * @return void |
||
158 | */ |
||
159 | public function runTests() |
||
160 | { |
||
161 | |||
162 | // run PHPUnit |
||
163 | $this->taskPHPUnit(sprintf('%s/bin/phpunit', $this->getVendorDir())) |
||
164 | ->configFile('phpunit.xml') |
||
165 | ->run(); |
||
166 | } |
||
167 | |||
168 | /** |
||
169 | * The complete build process. |
||
170 | * |
||
171 | * @return void |
||
172 | */ |
||
173 | public function build() |
||
182 | } |
||
183 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.