1 | <?php |
||
34 | class RoboFile extends AbstractRoboFile |
||
|
|||
35 | { |
||
36 | |||
37 | /** |
||
38 | * Run's the composer install command. |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | public function composerInstall() |
||
50 | |||
51 | /** |
||
52 | * Run's the composer update command. |
||
53 | * |
||
54 | * @return void |
||
55 | */ |
||
56 | public function composerUpdate() |
||
64 | |||
65 | /** |
||
66 | * Clean up the environment for a new build. |
||
67 | * |
||
68 | * @return void |
||
69 | */ |
||
70 | public function clean() |
||
74 | |||
75 | /** |
||
76 | * Prepare's the environment for a new build. |
||
77 | * |
||
78 | * @return void |
||
79 | */ |
||
80 | public function prepare() |
||
88 | |||
89 | /** |
||
90 | * Run's the PHPMD. |
||
91 | * |
||
92 | * @return void |
||
93 | */ |
||
94 | public function runMd() |
||
107 | |||
108 | /** |
||
109 | * Run's the PHPCPD. |
||
110 | * |
||
111 | * @return void |
||
112 | */ |
||
113 | public function runCpd() |
||
126 | |||
127 | /** |
||
128 | * Run's the PHPCodeSniffer. |
||
129 | * |
||
130 | * @return void |
||
131 | */ |
||
132 | public function runCs() |
||
145 | |||
146 | /** |
||
147 | * Run's the PHPUnit tests. |
||
148 | * |
||
149 | * @return void |
||
150 | */ |
||
151 | public function runTests() |
||
152 | { |
||
153 | |||
154 | // run PHPUnit |
||
155 | $this->taskPHPUnit(sprintf('%s/bin/phpunit', $this->getVendorDir())) |
||
156 | ->configFile('phpunit.xml') |
||
157 | ->run(); |
||
158 | } |
||
159 | |||
160 | /** |
||
161 | * The complete build process. |
||
162 | * |
||
163 | * @return void |
||
164 | */ |
||
165 | public function build() |
||
174 | } |
||
175 |
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.