| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function testMultipleEnvVars(CliGuy $I) |
||
| 15 | { |
||
| 16 | $task = $I->taskExec('env')->interactive(false); |
||
| 17 | $task->env('FOO', 'BAR'); |
||
| 18 | $task->env('BAR', 'BAZ'); |
||
| 19 | $result = $task->run(); |
||
| 20 | // Verify that the text contains our environment variable. |
||
| 21 | verify($result->getMessage())->contains('FOO=BAR'); |
||
| 22 | verify($result->getMessage())->contains('BAR=BAZ'); |
||
| 23 | } |
||
| 24 | |||
| 41 |
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.