| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function chaining() |
||
| 42 | { |
||
| 43 | $actual = ProcessArguments::create() |
||
| 44 | ->addArg('command') |
||
| 45 | ->addArgs(['-vvv', '--version-tricks-off', '--', '--' => true]) |
||
| 46 | ->addArg('--') |
||
| 47 | ->addArgs(['-vvv', '--file' => 'music', '--empty' => true, 'flag' => true]) |
||
| 48 | ->createProcess(); |
||
| 49 | $this->assertInstanceOf(Process::class, $actual); |
||
| 50 | $commandLine = $actual->getCommandLine(); |
||
| 51 | $this->assertSame( |
||
| 52 | "'command' '-vvv' '--version-tricks-off' '--' '--' '--' '-vvv' '--file=music' '--empty' '--flag'", |
||
| 53 | $commandLine |
||
| 54 | ); |
||
| 55 | } |
||
| 56 | } |
||
| 57 |