Skip to content

Commit

Permalink
Fix invalid doc (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Nov 3, 2022
1 parent e9ccfb0 commit 83335f3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Input/ChildCommandFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function createChildCommand(InputInterface $input): array
}

/**
* @return list<string>
* @return array<int, string>
*/
private function createBaseCommand(
InputInterface $input
Expand Down
21 changes: 21 additions & 0 deletions tests/Input/ChildCommandFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,27 @@ public static function childProvider(): iterable
],
];
})();

yield 'no PHP executable or command' => (static function () use (
$scriptPath
) {
[$input, $commandDefinition] = self::createInput(
[],
[],
);

return [
'',
$scriptPath,
'',
$commandDefinition,
$input,
[
$scriptPath,
'--child',
],
];
})();
}

public function test_it_cannot_create_a_factory_with_an_invalid_script_path(): void
Expand Down

0 comments on commit 83335f3

Please sign in to comment.