Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
42 | public function chaining() |
||
43 | { |
||
44 | $actual = ProcessArguments::create() |
||
45 | ->addArg('command') |
||
46 | ->addArgs(array('-vvv', '--version-tricks-off', '--', '--' => true)) |
||
47 | ->addArg('--') |
||
48 | ->addArgs(array('-vvv', '--file' => 'music', '--empty' => true, 'flag' => true)) |
||
49 | ->createBuilder() |
||
50 | ; |
||
51 | $this->assertInstanceOf(ProcessBuilder::class, $actual); |
||
52 | $commandLine = $actual->getProcess()->getCommandLine(); |
||
53 | $this->assertSame( |
||
54 | "'command' '-vvv' '--version-tricks-off' '--' '--' '--' '-vvv' '--file=music' '--empty' '--flag'", |
||
55 | $commandLine |
||
56 | ); |
||
57 | } |
||
58 | } |
||
59 |