Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public static function fromString($argumentsInput) |
||
10 | { |
||
11 | $phpunitArguments = new PhpunitArguments; |
||
12 | |||
13 | $arguments = explode(' ', $argumentsInput); |
||
14 | |||
15 | foreach ($arguments as $argument) { |
||
16 | if (strpos($argument, '=') !== false) { |
||
17 | list($name, $value) = explode('=', $argument); |
||
18 | $phpunitArguments->addArgument($name, $value); |
||
19 | |||
20 | continue; |
||
21 | } |
||
22 | $phpunitArguments->addArgument($argument); |
||
23 | } |
||
24 | |||
25 | return $phpunitArguments; |
||
26 | } |
||
27 | |||
52 | } |