SYMBOL INDEX (465 symbols across 87 files) FILE: bin/devkit.php type Tools (line 19) | trait Tools method toolsJsonDefault (line 21) | private function toolsJsonDefault(): array method loadTools (line 45) | private function loadTools($jsonPath, ?Filter $filter = null): Collection method configure (line 59) | protected function configure(): void method execute (line 67) | protected function execute(InputInterface $input, OutputInterface $outpu... method configure (line 109) | protected function configure(): void method execute (line 116) | protected function execute(InputInterface $input, OutputInterface $outpu... method updatePhars (line 129) | private function updatePhars(string $jsonPath, OutputInterface $output):... method findLatestPharsCommand (line 148) | private function findLatestPharsCommand(string $jsonPath): Command method findLatestPhars (line 162) | private function findLatestPhars(string $jsonPath): array method updatePharsCommand (line 171) | private function updatePharsCommand(string $jsonPath, array $phars): Com... method configure (line 196) | protected function configure(): void method execute (line 203) | protected function execute(InputInterface $input, OutputInterface $outpu... method toolToHtml (line 212) | private function toolToHtml(): \Closure method renderPage (line 245) | private function renderPage(Collection $toolsHtml): string FILE: src/Cli/Application.php class Application (line 17) | final class Application extends CliApplication method __construct (line 21) | public function __construct(string $version, ServiceContainer $service... method doRun (line 33) | public function doRun(InputInterface $input, OutputInterface $output):... method getDefaultInputDefinition (line 41) | protected function getDefaultInputDefinition(): InputDefinition method toolsJsonDefault (line 49) | private function toolsJsonDefault(): array method createCommandLoader (line 73) | private function createCommandLoader(ContainerInterface $container): C... FILE: src/Cli/Command/DefaultTag.php type DefaultTag (line 5) | trait DefaultTag method defaultExcludeTag (line 7) | private function defaultExcludeTag(): array method defaultTag (line 12) | private function defaultTag(): array FILE: src/Cli/Command/DefaultTargetDir.php type DefaultTargetDir (line 5) | trait DefaultTargetDir method defaultTargetDir (line 7) | private function defaultTargetDir(): string FILE: src/Cli/Command/InstallCommand.php class InstallCommand (line 13) | final class InstallCommand extends Command method __construct (line 23) | public function __construct(InstallTools $useCase, Runner $runner) method configure (line 31) | protected function configure(): void method execute (line 40) | protected function execute(InputInterface $input, OutputInterface $out... FILE: src/Cli/Command/ListCommand.php class ListCommand (line 15) | final class ListCommand extends Command method __construct (line 23) | public function __construct(ListTools $listTools) method configure (line 30) | protected function configure(): void method execute (line 37) | protected function execute(InputInterface $input, OutputInterface $out... method createStyle (line 53) | private function createStyle(InputInterface $input, OutputInterface $o... FILE: src/Cli/Command/TestCommand.php class TestCommand (line 13) | final class TestCommand extends Command method __construct (line 23) | public function __construct(TestTools $useCase, Runner $runner) method configure (line 31) | protected function configure(): void method execute (line 40) | protected function execute(InputInterface $input, OutputInterface $out... FILE: src/Cli/Runner/DryRunner.php class DryRunner (line 9) | final class DryRunner implements Runner method __construct (line 13) | public function __construct(OutputInterface $output) method run (line 18) | public function run(Command $command): int FILE: src/Cli/ServiceContainer.php class ServiceContainer (line 23) | class ServiceContainer implements ContainerInterface method set (line 41) | public function set(string $id, /*object */$service): void method get (line 54) | public function get(string $id) method has (line 71) | public function has(string $id): bool method createInstallCommand (line 80) | private function createInstallCommand(): InstallCommand method createListCommand (line 89) | private function createListCommand(): ListCommand method createTestCommand (line 98) | private function createTestCommand(): TestCommand method createRunner (line 103) | private function createRunner(): Runner method createInstallToolsUseCase (line 112) | private function createInstallToolsUseCase(): InstallTools method createListToolsUseCase (line 121) | private function createListToolsUseCase(): ListTools method createTestToolsUseCase (line 130) | private function createTestToolsUseCase(): TestTools method createTools (line 135) | private function createTools(): Tools FILE: src/Cli/ServiceContainer/LazyRunner.php class LazyRunner (line 10) | final class LazyRunner implements Runner method __construct (line 16) | public function __construct(RunnerFactory $factory) method run (line 25) | public function run(Command $command): int method runner (line 34) | private function runner(): Runner FILE: src/Cli/ServiceContainer/RunnerFactory.php class RunnerFactory (line 15) | class RunnerFactory method __construct (line 19) | public function __construct(ContainerInterface $container) method createRunner (line 28) | public function createRunner(): Runner method createRealRunner (line 43) | private function createRealRunner(): DryRunner|PassthruRunner method parameters (line 56) | private function parameters(): array method targetDir (line 69) | private function targetDir(): ?string FILE: src/Json/Factory/Assert.php class Assert (line 5) | final class Assert method requireFields (line 7) | public static function requireFields(array $fields, array $data, strin... FILE: src/Json/Factory/BoxBuildCommandFactory.php class BoxBuildCommandFactory (line 8) | final class BoxBuildCommandFactory method import (line 10) | public static function import(array $definition): Command FILE: src/Json/Factory/ComposerBinPluginCommandFactory.php class ComposerBinPluginCommandFactory (line 10) | final class ComposerBinPluginCommandFactory method import (line 12) | public static function import(array $command): Command method importLinks (line 19) | private static function importLinks(array $command): Collection FILE: src/Json/Factory/ComposerGlobalInstallCommandFactory.php class ComposerGlobalInstallCommandFactory (line 8) | final class ComposerGlobalInstallCommandFactory method import (line 10) | public static function import(array $command): Command FILE: src/Json/Factory/ComposerInstallCommandFactory.php class ComposerInstallCommandFactory (line 8) | final class ComposerInstallCommandFactory method import (line 10) | public static function import(array $command): Command FILE: src/Json/Factory/FileDownloadCommandFactory.php class FileDownloadCommandFactory (line 8) | final class FileDownloadCommandFactory method import (line 10) | public static function import(array $command): Command FILE: src/Json/Factory/PharDownloadCommandFactory.php class PharDownloadCommandFactory (line 8) | final class PharDownloadCommandFactory method import (line 10) | public static function import(array $command): Command FILE: src/Json/Factory/PhiveInstallCommandFactory.php class PhiveInstallCommandFactory (line 8) | final class PhiveInstallCommandFactory method import (line 10) | public static function import(array $command): Command FILE: src/Json/Factory/ShCommandFactory.php class ShCommandFactory (line 8) | final class ShCommandFactory method import (line 10) | public static function import(array $command): Command FILE: src/Json/Factory/ToolFactory.php class ToolFactory (line 11) | final class ToolFactory method import (line 13) | public static function import(array $tool): Tool method importCommand (line 27) | private static function importCommand(array $tool): Command method createCommands (line 42) | private static function createCommands($type, $command): Collection FILE: src/Json/JsonTools.php class JsonTools (line 12) | final class JsonTools implements Tools method __construct (line 19) | public function __construct(callable $resourceLocator) method all (line 28) | public function all(Filter $filter): Collection method loadTools (line 33) | private function loadTools(): Collection method loadJson (line 42) | private function loadJson(string $resource): array method resources (line 57) | private function resources(): array FILE: src/Runner/ParametrisedRunner.php class ParametrisedRunner (line 7) | final class ParametrisedRunner implements Runner method __construct (line 12) | public function __construct(Runner $decoratedRunner, array $parameters) method run (line 18) | public function run(Command $command): int FILE: src/Runner/PassthruRunner.php class PassthruRunner (line 7) | final class PassthruRunner implements Runner method run (line 9) | public function run(Command $command): int FILE: src/Runner/Runner.php type Runner (line 7) | interface Runner method run (line 9) | public function run(Command $command): int; FILE: src/Tool/Collection.php class Collection (line 9) | class Collection implements IteratorAggregate, Countable method __construct (line 13) | private function __construct(array $elements) method create (line 18) | public static function create(array $elements): Collection method getIterator (line 23) | public function getIterator(): Traversable method merge (line 28) | public function merge(Collection $other): Collection method filter (line 33) | public function filter(callable $f): Collection method map (line 38) | public function map(callable $f): Collection method reduce (line 43) | public function reduce($initial, callable $param) method sort (line 48) | public function sort(callable $f): Collection method toArray (line 56) | public function toArray(): array method count (line 61) | public function count(): int method empty (line 66) | public function empty(): bool FILE: src/Tool/Command.php type Command (line 5) | interface Command method __toString (line 7) | public function __toString(): string; FILE: src/Tool/Command/BoxBuildCommand.php class BoxBuildCommand (line 7) | final class BoxBuildCommand implements Command method __construct (line 15) | public function __construct(string $repository, string $phar, string $... method __toString (line 24) | public function __toString(): string method targetDir (line 39) | private function targetDir(): string FILE: src/Tool/Command/ComposerBinPluginCommand.php class ComposerBinPluginCommand (line 8) | final class ComposerBinPluginCommand implements Command method __construct (line 16) | public function __construct(string $package, string $namespace, Collec... method __toString (line 23) | public function __toString(): string method package (line 28) | public function package(): string method namespace (line 33) | public function namespace(): string method links (line 38) | public function links(): Collection method linkCommand (line 43) | private function linkCommand(): string FILE: src/Tool/Command/ComposerBinPluginLinkCommand.php class ComposerBinPluginLinkCommand (line 7) | final class ComposerBinPluginLinkCommand implements Command method __construct (line 13) | public function __construct(string $source, string $target, string $na... method __toString (line 20) | public function __toString(): string FILE: src/Tool/Command/ComposerGlobalInstallCommand.php class ComposerGlobalInstallCommand (line 7) | final class ComposerGlobalInstallCommand implements Command method __construct (line 11) | public function __construct(string $package) method __toString (line 16) | public function __toString(): string method package (line 21) | public function package(): string FILE: src/Tool/Command/ComposerGlobalMultiInstallCommand.php class ComposerGlobalMultiInstallCommand (line 9) | final class ComposerGlobalMultiInstallCommand implements Command method __construct (line 13) | public function __construct(Collection $commands) method __toString (line 24) | public function __toString(): string FILE: src/Tool/Command/ComposerInstallCommand.php class ComposerInstallCommand (line 7) | final class ComposerInstallCommand implements Command method __construct (line 13) | public function __construct(string $repository, string $targetDir, ?st... method __toString (line 20) | public function __toString(): string FILE: src/Tool/Command/FileDownloadCommand.php class FileDownloadCommand (line 7) | final class FileDownloadCommand implements Command method __construct (line 12) | public function __construct(string $url, string $file) method __toString (line 18) | public function __toString(): string FILE: src/Tool/Command/MultiStepCommand.php class MultiStepCommand (line 9) | final class MultiStepCommand implements Command method __construct (line 14) | public function __construct(Collection $commands, $glue = ' && ') method __toString (line 26) | public function __toString(): string FILE: src/Tool/Command/OptimisedComposerBinPluginCommand.php class OptimisedComposerBinPluginCommand (line 9) | final class OptimisedComposerBinPluginCommand implements Command method __construct (line 13) | public function __construct(Collection $commands) method __toString (line 24) | public function __toString(): string method packagesGroupedByNamespace (line 29) | private function packagesGroupedByNamespace(): array method commandToRun (line 38) | private function commandToRun(string $namespace, array $packages): string method commandsToRun (line 43) | private function commandsToRun(array $packagesGrouped): array method linksToCreate (line 48) | private function linksToCreate(): array FILE: src/Tool/Command/PharDownloadCommand.php class PharDownloadCommand (line 7) | final class PharDownloadCommand implements Command method __construct (line 12) | public function __construct(string $phar, string $bin) method __toString (line 18) | public function __toString(): string FILE: src/Tool/Command/PhiveInstallCommand.php class PhiveInstallCommand (line 7) | final class PhiveInstallCommand implements Command method __construct (line 13) | public function __construct(string $alias, string $bin, ?string $sig =... method __toString (line 20) | public function __toString(): string FILE: src/Tool/Command/ShCommand.php class ShCommand (line 7) | final class ShCommand implements Command method __construct (line 11) | public function __construct(string $command) method __toString (line 16) | public function __toString(): string FILE: src/Tool/Command/TestCommand.php class TestCommand (line 7) | final class TestCommand implements Command method __construct (line 12) | public function __construct(string $command, string $name) method __toString (line 18) | public function __toString(): string FILE: src/Tool/Filter.php class Filter (line 5) | class Filter method __construct (line 21) | public function __construct(array $excludedTags, array $tags) method __invoke (line 27) | public function __invoke(Tool $tool): bool FILE: src/Tool/Tool.php class Tool (line 5) | class Tool method __construct (line 14) | public function __construct(string $name, string $summary, string $web... method name (line 26) | public function name(): string method summary (line 31) | public function summary(): string method website (line 36) | public function website(): string method command (line 41) | public function command(): Command method testCommand (line 46) | public function testCommand(): Command method tags (line 54) | public function tags(): array FILE: src/Tool/Tools.php type Tools (line 7) | interface Tools method all (line 14) | public function all(Filter $filter): Collection; FILE: src/UseCase/InstallTools.php class InstallTools (line 23) | class InstallTools method __construct (line 29) | public function __construct(Tools $tools) method __invoke (line 34) | public function __invoke(Filter $filter): Command method commandFilter (line 54) | private function commandFilter(Collection $commands): Closure method installationCommands (line 63) | private function installationCommands(Collection $tools): Collection method toolCommands (line 72) | private function toolCommands(Collection $tools): Collection method groupComposerGlobalInstallCommands (line 81) | private function groupComposerGlobalInstallCommands(Collection $comman... method groupComposerBinPluginCommands (line 88) | private function groupComposerBinPluginCommands(Collection $commands):... FILE: src/UseCase/ListTools.php class ListTools (line 9) | class ListTools method __construct (line 13) | public function __construct(Tools $tools) method __invoke (line 18) | public function __invoke(Filter $filter): Collection FILE: src/UseCase/TestTools.php class TestTools (line 11) | class TestTools method __construct (line 15) | public function __construct(Tools $tools) method __invoke (line 20) | public function __invoke(Filter $filter): Command FILE: tests/Cli/ApplicationTest.php class ApplicationTest (line 16) | class ApplicationTest extends TestCase method setUp (line 22) | protected function setUp(): void method test_it_is_a_cli_application (line 28) | public function test_it_is_a_cli_application() method test_it_defines_the_app_name_and_version (line 33) | public function test_it_defines_the_app_name_and_version() method test_it_defines_tools_option (line 39) | public function test_it_defines_tools_option() method test_it_takes_the_tools_option_default_from_environment_if_present (line 65) | #[Putenv('TOOLBOX_JSON', 'resources/pre.json,resources/tools.json')] method test_it_trims_the_tools_option (line 71) | #[Putenv('TOOLBOX_JSON', 'resources/pre.json , resources/tools.json')] method test_it_allows_to_override_tools_location (line 80) | public function test_it_allows_to_override_tools_location() method test_it_runs_the_command_in_dry_run_mode (line 98) | public function test_it_runs_the_command_in_dry_run_mode() method givenOutputThatExpectsMessageWritten (line 114) | public function givenOutputThatExpectsMessageWritten(string $message):... FILE: tests/Cli/Command/InstallCommandTest.php class InstallCommandTest (line 14) | class InstallCommandTest extends ToolboxCommandTestCase method setUp (line 22) | protected function setUp(): void method test_it_runs_the_install_tools_use_case (line 30) | public function test_it_runs_the_install_tools_use_case() method test_it_returns_the_status_code_of_the_run (line 41) | public function test_it_returns_the_status_code_of_the_run() method test_it_filters_by_tags (line 51) | public function test_it_filters_by_tags() method test_it_defines_dry_run_option (line 64) | public function test_it_defines_dry_run_option() method test_it_defines_target_dir_option (line 69) | public function test_it_defines_target_dir_option() method test_it_takes_the_target_dir_option_default_from_environment_if_present (line 75) | #[Putenv('TOOLBOX_TARGET_DIR', '/tmp')] method test_it_defines_exclude_tag_option (line 81) | public function test_it_defines_exclude_tag_option() method test_it_takes_the_excluded_tag_option_default_from_environment_if_present (line 87) | #[Putenv('TOOLBOX_EXCLUDED_TAGS', 'foo,bar,baz')] method test_it_defines_tag_option (line 93) | public function test_it_defines_tag_option() method test_it_takes_the_tag_option_default_from_environment_if_present (line 99) | #[Putenv('TOOLBOX_TAGS', 'foo,bar,baz')] method getContainerTestDoubles (line 105) | protected function getContainerTestDoubles(): array method createCommand (line 113) | private function createCommand(): Command FILE: tests/Cli/Command/ListCommandTest.php class ListCommandTest (line 15) | class ListCommandTest extends ToolboxCommandTestCase method setUp (line 21) | protected function setUp(): void method test_it_runs_the_list_tools_use_case (line 28) | public function test_it_runs_the_list_tools_use_case() method test_it_filters_by_tags (line 41) | public function test_it_filters_by_tags() method test_it_defines_exclude_tag_option (line 54) | public function test_it_defines_exclude_tag_option() method test_it_takes_the_excluded_tag_option_default_from_environment_if_present (line 60) | #[Putenv('TOOLBOX_EXCLUDED_TAGS', 'foo,bar,baz')] method test_it_defines_tag_option (line 66) | public function test_it_defines_tag_option() method test_it_takes_the_tag_option_default_from_environment_if_present (line 71) | #[Putenv('TOOLBOX_TAGS', 'foo,bar,baz')] method getContainerTestDoubles (line 77) | protected function getContainerTestDoubles(): array method createTool (line 84) | private function createTool(string $name, string $summary, string $web... FILE: tests/Cli/Command/TestCommandTest.php class TestCommandTest (line 14) | class TestCommandTest extends ToolboxCommandTestCase method setUp (line 22) | protected function setUp(): void method test_it_runs_the_test_tools_use_case (line 30) | public function test_it_runs_the_test_tools_use_case() method test_it_returns_the_status_code_of_the_run (line 41) | public function test_it_returns_the_status_code_of_the_run() method test_it_filters_by_tags (line 51) | public function test_it_filters_by_tags() method test_it_defines_dry_run_option (line 61) | public function test_it_defines_dry_run_option() method test_it_defines_target_dir_option (line 66) | public function test_it_defines_target_dir_option() method test_it_takes_the_target_dir_option_default_from_environment_if_present (line 72) | #[Putenv('TOOLBOX_TARGET_DIR', '/tmp')] method test_it_defines_exclude_tag_option (line 78) | public function test_it_defines_exclude_tag_option() method test_it_takes_the_excluded_tag_option_default_from_environment_if_present (line 84) | #[Putenv('TOOLBOX_EXCLUDED_TAGS', 'foo,bar,baz')] method test_it_defines_tag_option (line 90) | public function test_it_defines_tag_option() method test_it_takes_the_tag_option_default_from_environment_if_present (line 95) | #[Putenv('TOOLBOX_TAGS', 'foo,bar,baz')] method getContainerTestDoubles (line 101) | protected function getContainerTestDoubles(): array method createCommand (line 109) | private function createCommand(): Command FILE: tests/Cli/Command/ToolboxCommandTestCase.php class ToolboxCommandTestCase (line 11) | abstract class ToolboxCommandTestCase extends TestCase method setUp (line 17) | protected function setUp(): void method test_it_provides_help (line 22) | public function test_it_provides_help() method getContainerTestDoubles (line 27) | protected function getContainerTestDoubles(): array method executeCliCommand (line 32) | protected function executeCliCommand(array $input = []): CommandTester method cliCommand (line 40) | protected function cliCommand(): Command method createServiceContainer (line 45) | private function createServiceContainer(): ServiceContainer FILE: tests/Cli/Runner/DryRunnerTest.php class DryRunnerTest (line 12) | class DryRunnerTest extends TestCase method setUp (line 18) | protected function setUp(): void method test_it_is_a_runner (line 24) | public function test_it_is_a_runner() method test_it_sends_the_command_to_the_output (line 29) | public function test_it_sends_the_command_to_the_output() FILE: tests/Cli/ServiceContainer/LazyRunnerTest.php class LazyRunnerTest (line 12) | class LazyRunnerTest extends TestCase method setUp (line 18) | protected function setUp(): void method test_it_is_a_runner (line 25) | public function test_it_is_a_runner() method test_it_returns_status_code_of_returned_by_the_created_runner (line 30) | public function test_it_returns_status_code_of_returned_by_the_created... method test_it_only_initializes_the_runner_once (line 40) | public function test_it_only_initializes_the_runner_once() method givenRunner (line 55) | public function givenRunner(Command $command, int $result): Runner method command (line 63) | private function command(): Command method givenFactoryCreates (line 68) | private function givenFactoryCreates(Runner $runner): void FILE: tests/Cli/ServiceContainer/RunnerFactoryTest.php class RunnerFactoryTest (line 20) | class RunnerFactoryTest extends TestCase method setUp (line 28) | protected function setUp(): void method test_it_creates_the_passthru_runner_by_default (line 53) | public function test_it_creates_the_passthru_runner_by_default() method test_it_creates_the_dry_runner_if_dry_run_option_is_passed (line 60) | public function test_it_creates_the_dry_runner_if_dry_run_option_is_pa... method test_it_creates_the_parametrised_runner_if_target_dir_option_is_present (line 69) | public function test_it_creates_the_parametrised_runner_if_target_dir_... method test_the_parametrised_runner_includes_the_target_dir_parameter (line 78) | public function test_the_parametrised_runner_includes_the_target_dir_p... method test_it_throws_an_exception_if_target_dir_does_not_exist (line 94) | public function test_it_throws_an_exception_if_target_dir_does_not_exi... method test_it_uses_the_real_path_as_target_dir (line 103) | public function test_it_uses_the_real_path_as_target_dir() method givenInput (line 118) | private function givenInput(array $parameters): InputInterface FILE: tests/Cli/ServiceContainerTest.php class ServiceContainerTest (line 19) | class ServiceContainerTest extends TestCase method setUp (line 23) | protected function setUp(): void method test_it_is_a_psr_container (line 30) | public function test_it_is_a_psr_container() method test_it_returns_false_if_service_is_not_registered (line 35) | public function test_it_returns_false_if_service_is_not_registered() method test_it_creates_application_services (line 40) | #[DataProvider('provideApplicationServices')] method provideApplicationServices (line 47) | public static function provideApplicationServices(): \Generator method test_it_throws_an_exception_if_unregistered_service_is_accessed (line 55) | public function test_it_throws_an_exception_if_unregistered_service_is... method test_it_registers_a_runtime_service (line 63) | public function test_it_registers_a_runtime_service() method test_it_returns_false_if_runtime_service_has_not_been_defined (line 73) | public function test_it_returns_false_if_runtime_service_has_not_been_... method test_it_throws_an_exception_if_missing_runtime_service_is_accessed (line 80) | public function test_it_throws_an_exception_if_missing_runtime_service... method test_it_throws_an_exception_if_unknown_runtime_service_is_provided (line 88) | public function test_it_throws_an_exception_if_unknown_runtime_service... FILE: tests/Json/Factory/AssertTest.php class AssertTest (line 8) | class AssertTest extends TestCase method test_it_throws_an_exception_if_a_field_is_missing (line 10) | public function test_it_throws_an_exception_if_a_field_is_missing() FILE: tests/Json/Factory/BoxBuildCommandFactoryTest.php class BoxBuildCommandFactoryTest (line 10) | class BoxBuildCommandFactoryTest extends TestCase method test_it_creates_a_command (line 20) | public function test_it_creates_a_command() method test_the_version_is_not_required (line 33) | public function test_the_version_is_not_required() method test_it_complains_if_any_of_required_properties_is_missing (line 44) | #[DataProvider('provideRequiredProperties')] method provideRequiredProperties (line 60) | public static function provideRequiredProperties(): \Generator FILE: tests/Json/Factory/ComposerBinPluginCommandFactoryTest.php class ComposerBinPluginCommandFactoryTest (line 12) | class ComposerBinPluginCommandFactoryTest extends TestCase method test_it_creates_a_command (line 15) | private const NAMESPACE = 'tools'; method test_it_creates_a_command_with_links_in_tools (line 27) | public function test_it_creates_a_command_with_links_in_tools() method test_it_complains_if_any_of_required_properties_is_missing (line 44) | #[DataProvider('provideRequiredProperties')] method provideRequiredProperties (line 59) | public static function provideRequiredProperties(): \Generator FILE: tests/Json/Factory/ComposerGlobalInstallCommandFactoryTest.php class ComposerGlobalInstallCommandFactoryTest (line 9) | class ComposerGlobalInstallCommandFactoryTest extends TestCase method test_creates_a_command (line 13) | public function test_creates_a_command() method test_it_complains_if_package_is_missing (line 22) | public function test_it_complains_if_package_is_missing() FILE: tests/Json/Factory/ComposerInstallCommandFactoryTest.php class ComposerInstallCommandFactoryTest (line 10) | class ComposerInstallCommandFactoryTest extends TestCase method test_it_creates_a_command (line 16) | public function test_it_creates_a_command() method test_it_complains_if_a_required_property_is_missing (line 28) | #[DataProvider('provideRequiredProperties')] method provideRequiredProperties (line 43) | public static function provideRequiredProperties(): \Generator FILE: tests/Json/Factory/FileDownloadCommandFactoryTest.php class FileDownloadCommandFactoryTest (line 10) | class FileDownloadCommandFactoryTest extends TestCase method test_it_creates_a_command (line 15) | public function test_it_creates_a_command() method test_it_complains_if_any_of_required_properties_is_missing (line 25) | #[DataProvider('provideRequiredProperties')] method provideRequiredProperties (line 40) | public static function provideRequiredProperties(): \Generator FILE: tests/Json/Factory/PharDownloadCommandFactoryTest.php class PharDownloadCommandFactoryTest (line 10) | class PharDownloadCommandFactoryTest extends TestCase method test_it_creates_a_command (line 15) | public function test_it_creates_a_command() method test_it_complains_if_any_of_required_properties_is_missing (line 25) | #[DataProvider('provideRequiredProperties')] method provideRequiredProperties (line 40) | public static function provideRequiredProperties(): \Generator FILE: tests/Json/Factory/PhiveInstallCommandFactoryTest.php class PhiveInstallCommandFactoryTest (line 10) | class PhiveInstallCommandFactoryTest extends TestCase method test_it_creates_a_command (line 16) | public function test_it_creates_a_command() method test_it_complains_if_any_of_required_properties_is_missing (line 28) | #[DataProvider('provideRequiredProperties')] method test_it_accepts_unsigned_phars (line 44) | public function test_it_accepts_unsigned_phars() method provideRequiredProperties (line 55) | public static function provideRequiredProperties(): \Generator FILE: tests/Json/Factory/ShCommandFactoryTest.php class ShCommandFactoryTest (line 9) | class ShCommandFactoryTest extends TestCase method test_creates_a_command (line 11) | public function test_creates_a_command() method test_it_complains_if_command_is_missing (line 20) | public function test_it_complains_if_command_is_missing() FILE: tests/Json/Factory/ToolFactoryTest.php class ToolFactoryTest (line 20) | class ToolFactoryTest extends TestCase method test_it_imports_tool_definition_from_an_array (line 22) | public function test_it_imports_tool_definition_from_an_array() method test_it_imports_the_composer_bin_plugin_command (line 46) | public function test_it_imports_the_composer_bin_plugin_command() method test_it_imports_the_phar_download_command (line 60) | public function test_it_imports_the_phar_download_command() method test_it_imports_the_phive_install_command (line 74) | public function test_it_imports_the_phive_install_command() method test_it_imports_the_file_download_command (line 88) | public function test_it_imports_the_file_download_command() method test_it_imports_the_box_build_command (line 102) | public function test_it_imports_the_box_build_command() method test_it_imports_the_composer_install_command (line 118) | public function test_it_imports_the_composer_install_command() method test_it_imports_the_composer_global_install_command (line 133) | public function test_it_imports_the_composer_global_install_command() method test_it_imports_the_sh_command (line 147) | public function test_it_imports_the_sh_command() method test_it_imports_multiple_commands (line 160) | public function test_it_imports_multiple_commands() method test_it_complains_if_it_cannot_recognise_the_command (line 184) | public function test_it_complains_if_it_cannot_recognise_the_command() method test_it_complains_if_the_command_is_empty (line 192) | public function test_it_complains_if_the_command_is_empty() method test_it_complains_if_any_of_required_properties_is_missing (line 199) | #[DataProvider('provideRequiredProperties')] method provideRequiredProperties (line 211) | public static function provideRequiredProperties(): \Generator method definition (line 220) | private function definition(array $overrides = []): array FILE: tests/Json/JsonToolsTest.php class JsonToolsTest (line 12) | class JsonToolsTest extends TestCase method test_it_is_a_tools_repository (line 14) | public function test_it_is_a_tools_repository() method test_it_throws_an_exception_if_resource_is_missing (line 19) | public function test_it_throws_an_exception_if_resource_is_missing() method test_it_throws_an_exception_if_resource_contains_invalid_json (line 28) | public function test_it_throws_an_exception_if_resource_contains_inval... method test_it_throws_an_exception_if_tools_are_not_present_in_the_resource (line 37) | public function test_it_throws_an_exception_if_tools_are_not_present_i... method test_it_throws_an_exception_if_tools_is_not_a_collection (line 46) | public function test_it_throws_an_exception_if_tools_is_not_a_collecti... method test_it_loads_tools_from_multiple_resources (line 55) | public function test_it_loads_tools_from_multiple_resources() method test_it_filters_out_tools (line 75) | public function test_it_filters_out_tools() method locator (line 85) | private function locator(array $resources): callable method filter (line 92) | private function filter(array $excludedTags = []): Filter FILE: tests/Runner/ParametrisedRunnerTest.php class ParametrisedRunnerTest (line 12) | class ParametrisedRunnerTest extends TestCase method setUp (line 18) | protected function setUp(): void method test_it_is_a_runner (line 24) | public function test_it_is_a_runner() method test_it_replaces_parameter_holders_in_the_command_before_running_it (line 29) | public function test_it_replaces_parameter_holders_in_the_command_befo... method command (line 48) | private function command(string $commandString): Command FILE: tests/Runner/PassthruRunnerTest.php class PassthruRunnerTest (line 10) | class PassthruRunnerTest extends TestCase method test_it_is_a_runner (line 12) | public function test_it_is_a_runner() method test_it_returns_the_exit_code_of_the_run_command (line 17) | public function test_it_returns_the_exit_code_of_the_run_command() method test_it_outputs_commands_output (line 24) | public function test_it_outputs_commands_output() FILE: tests/Tool/CollectionTest.php class CollectionTest (line 8) | class CollectionTest extends TestCase method test_it_iterates_over_its_elements (line 10) | public function test_it_iterates_over_its_elements() method test_it_is_cast_to_an_array (line 19) | public function test_it_is_cast_to_an_array() method test_it_merges_two_collections (line 28) | public function test_it_merges_two_collections() method test_it_filters_elements_in_the_collection (line 40) | public function test_it_filters_elements_in_the_collection() method test_it_maps_elements_in_the_collection (line 51) | public function test_it_maps_elements_in_the_collection() method test_it_folds_the_collection_left (line 62) | public function test_it_folds_the_collection_left() method test_it_counts_its_elements (line 73) | public function test_it_counts_its_elements() method test_it_checks_if_collection_is_empty (line 79) | public function test_it_checks_if_collection_is_empty() method test_it_sorts_the_collection (line 85) | public function test_it_sorts_the_collection() method assertIterates (line 96) | private function assertIterates(array $elements, Collection $c, string... FILE: tests/Tool/Command/BoxBuildCommandTest.php class BoxBuildCommandTest (line 9) | class BoxBuildCommandTest extends TestCase method test_it_is_a_command (line 21) | public function test_it_is_a_command() method test_it_generates_the_installation_command (line 34) | public function test_it_generates_the_installation_command() method test_it_tries_to_guess_version_number_if_not_given_one (line 51) | public function test_it_tries_to_guess_version_number_if_not_given_one() method test_it_uses_a_generic_directory_if_name_cannot_be_guessed_from_the_repository (line 63) | public function test_it_uses_a_generic_directory_if_name_cannot_be_gue... FILE: tests/Tool/Command/ComposerBinPluginCommandTest.php class ComposerBinPluginCommandTest (line 11) | class ComposerBinPluginCommandTest extends TestCase method setUp (line 18) | protected function setUp(): void method test_it_is_a_command (line 27) | public function test_it_is_a_command() method test_it_generates_the_installation_command (line 32) | public function test_it_generates_the_installation_command() method test_it_exposes_the_package_and_namespace (line 37) | public function test_it_exposes_the_package_and_namespace() method test_it_optionally_creates_a_symlink (line 43) | public function test_it_optionally_creates_a_symlink() method test_it_does_not_create_a_symlink_if_links_option_was_not_given (line 55) | public function test_it_does_not_create_a_symlink_if_links_option_was_... FILE: tests/Tool/Command/ComposerBinPluginLinkCommandTest.php class ComposerBinPluginLinkCommandTest (line 9) | final class ComposerBinPluginLinkCommandTest extends TestCase method setUp (line 17) | protected function setUp(): void method test_it_is_a_command (line 22) | public function test_it_is_a_command() method test_it_generates_a_symlink_command (line 27) | public function test_it_generates_a_symlink_command() FILE: tests/Tool/Command/ComposerGlobalInstallCommandTest.php class ComposerGlobalInstallCommandTest (line 9) | class ComposerGlobalInstallCommandTest extends TestCase method setUp (line 15) | protected function setUp(): void method test_it_is_a_command (line 20) | public function test_it_is_a_command() method test_it_exposes_the_package_name (line 25) | public function test_it_exposes_the_package_name() method test_it_generates_the_installation_command (line 30) | public function test_it_generates_the_installation_command() FILE: tests/Tool/Command/ComposerGlobalMultiInstallCommandTest.php class ComposerGlobalMultiInstallCommandTest (line 12) | class ComposerGlobalMultiInstallCommandTest extends TestCase method test_it_is_a_command (line 14) | public function test_it_is_a_command() method test_it_generates_a_single_installation_command (line 24) | public function test_it_generates_a_single_installation_command() method test_it_throws_an_exception_if_there_is_no_commands (line 34) | public function test_it_throws_an_exception_if_there_is_no_commands() FILE: tests/Tool/Command/ComposerInstallCommandTest.php class ComposerInstallCommandTest (line 9) | class ComposerInstallCommandTest extends TestCase method test_it_is_a_command (line 15) | public function test_it_is_a_command() method test_it_generates_the_installation_command (line 22) | public function test_it_generates_the_installation_command() method test_it_tries_to_guess_version_number_if_not_given_one (line 31) | public function test_it_tries_to_guess_version_number_if_not_given_one() FILE: tests/Tool/Command/FileDownloadCommandTest.php class FileDownloadCommandTest (line 9) | class FileDownloadCommandTest extends TestCase method setUp (line 16) | protected function setUp(): void method test_it_is_a_command (line 21) | public function test_it_is_a_command() method test_it_generates_the_installation_command (line 26) | public function test_it_generates_the_installation_command() FILE: tests/Tool/Command/MultiStepCommandTest.php class MultiStepCommandTest (line 12) | class MultiStepCommandTest extends TestCase method test_it_is_a_command (line 14) | public function test_it_is_a_command() method test_it_glues_all_its_subcommands (line 21) | public function test_it_glues_all_its_subcommands() method test_it_glues_all_its_subcommands_with_a_custom_glue (line 31) | public function test_it_glues_all_its_subcommands_with_a_custom_glue() method test_it_throws_an_exception_if_there_is_no_steps (line 41) | public function test_it_throws_an_exception_if_there_is_no_steps() method command (line 48) | private function command(string $commandString): Command FILE: tests/Tool/Command/OptimisedComposerBinPluginCommandTest.php class OptimisedComposerBinPluginCommandTest (line 13) | class OptimisedComposerBinPluginCommandTest extends TestCase method test_it_is_a_command (line 15) | public function test_it_is_a_command() method test_it_groups_composer_bin_command_by_namespace (line 20) | public function test_it_groups_composer_bin_command_by_namespace() method test_it_throws_an_exception_if_there_is_no_commands (line 33) | public function test_it_throws_an_exception_if_there_is_no_commands() method test_it_creates_links_to_composer_bin_commands (line 40) | public function test_it_creates_links_to_composer_bin_commands() method test_it_does_not_create_links_if_commands_have_no_links_defined (line 77) | public function test_it_does_not_create_links_if_commands_have_no_link... FILE: tests/Tool/Command/PharDownloadCommandTest.php class PharDownloadCommandTest (line 9) | class PharDownloadCommandTest extends TestCase method setUp (line 16) | protected function setUp(): void method test_it_is_a_command (line 21) | public function test_it_is_a_command() method test_it_generates_the_installation_command (line 26) | public function test_it_generates_the_installation_command() FILE: tests/Tool/Command/PhiveInstallCommandTest.php class PhiveInstallCommandTest (line 9) | class PhiveInstallCommandTest extends TestCase method setUp (line 17) | protected function setUp(): void method test_it_is_a_command (line 22) | public function test_it_is_a_command() method test_it_generates_the_installation_command (line 27) | public function test_it_generates_the_installation_command() method test_it_accepts_unsigned_phar_command (line 32) | public function test_it_accepts_unsigned_phar_command() FILE: tests/Tool/Command/ShCommandTest.php class ShCommandTest (line 9) | class ShCommandTest extends TestCase method test_it_is_a_command (line 11) | public function test_it_is_a_command() method test_it_returns_the_command (line 16) | public function test_it_returns_the_command() FILE: tests/Tool/Command/TestCommandTest.php class TestCommandTest (line 9) | class TestCommandTest extends TestCase method test_it_is_a_command (line 11) | public function test_it_is_a_command() method test_it_generates_the_command (line 16) | public function test_it_generates_the_command() FILE: tests/Tool/FilterTest.php class FilterTest (line 11) | class FilterTest extends TestCase method test_it_returns_true_if_no_excluded_tags_were_defined (line 13) | public function test_it_returns_true_if_no_excluded_tags_were_defined() method test_it_returns_true_if_no_excluded_tags_match (line 20) | public function test_it_returns_true_if_no_excluded_tags_match() method test_it_returns_true_if_tool_has_no_tags (line 27) | public function test_it_returns_true_if_tool_has_no_tags() method test_it_returns_true_if_neither_tool_nor_excluded_tags_were_defined (line 34) | public function test_it_returns_true_if_neither_tool_nor_excluded_tags... method test_it_returns_false_if_one_excluded_tag_matches (line 41) | public function test_it_returns_false_if_one_excluded_tag_matches() method test_it_returns_false_if_multiple_excluded_tags_match (line 48) | public function test_it_returns_false_if_multiple_excluded_tags_match() method test_it_returns_false_if_all_excluded_tags_match (line 55) | public function test_it_returns_false_if_all_excluded_tags_match() method test_it_returns_true_if_a_tag_matches (line 62) | public function test_it_returns_true_if_a_tag_matches() method test_it_returns_true_if_all_tags_match_exactly (line 69) | public function test_it_returns_true_if_all_tags_match_exactly() method test_it_returns_true_if_all_tags_match (line 76) | public function test_it_returns_true_if_all_tags_match() method test_it_returns_false_if_the_tool_has_no_tags_to_match (line 83) | public function test_it_returns_false_if_the_tool_has_no_tags_to_match() method test_it_returns_false_if_a_tag_is_both_included_and_excluded (line 90) | public function test_it_returns_false_if_a_tag_is_both_included_and_ex... method tool (line 97) | private function tool(array $tags): Tool FILE: tests/Tool/ToolTest.php class ToolTest (line 11) | class ToolTest extends TestCase method test_it_exposes_its_properties (line 13) | public function test_it_exposes_its_properties() method test_tags_can_only_be_strings (line 28) | public function test_tags_can_only_be_strings() method anyCommand (line 40) | public function anyCommand(): object FILE: tests/UseCase/InstallToolsTest.php class InstallToolsTest (line 24) | class InstallToolsTest extends TestCase method setUp (line 30) | protected function setUp(): void method test_it_returns_a_multi_step_command (line 36) | public function test_it_returns_a_multi_step_command() method test_it_groups_composer_global_install_commands (line 47) | public function test_it_groups_composer_global_install_commands() method test_it_does_not_include_empty_commands (line 59) | public function test_it_does_not_include_empty_commands() method test_it_groups_composer_bin_plugin_commands (line 71) | public function test_it_groups_composer_bin_plugin_commands() method test_it_includes_installation_tagged_commands_before_other_ones (line 83) | public function test_it_includes_installation_tagged_commands_before_o... method test_it_includes_shell_commands (line 96) | public function test_it_includes_shell_commands() method test_it_includes_multi_step_commands (line 107) | public function test_it_includes_multi_step_commands() method test_it_includes_composer_install_commands (line 121) | public function test_it_includes_composer_install_commands() method test_it_includes_box_build_commands (line 132) | public function test_it_includes_box_build_commands() method test_it_includes_phar_download_commands (line 143) | public function test_it_includes_phar_download_commands() method test_it_includes_phive_install_commands (line 154) | public function test_it_includes_phive_install_commands() method test_it_includes_file_download_commands (line 164) | public function test_it_includes_file_download_commands() method filter (line 175) | private function filter(): Filter method tool (line 180) | private function tool(Command $command, array $tags = []): Tool method givenToolsFor (line 192) | private function givenToolsFor(Filter $filter, Collection $tools): void method givenTools (line 199) | private function givenTools(Collection $tools): void FILE: tests/UseCase/ListToolsTest.php class ListToolsTest (line 14) | class ListToolsTest extends TestCase method test_it_returns_loaded_tools (line 16) | public function test_it_returns_loaded_tools() method filter (line 28) | private function filter(): Filter method anyTool (line 33) | private function anyTool(): Tool method givenToolsFor (line 45) | private function givenToolsFor(Filter $filter, Collection $tools): Tools FILE: tests/UseCase/TestToolsTest.php class TestToolsTest (line 14) | class TestToolsTest extends TestCase method test_it_returns_test_aggregated_test_command (line 16) | public function test_it_returns_test_aggregated_test_command() method tool (line 30) | private function tool(Command $testCommand): Tool method command (line 42) | private function command(string $command): Command method tools (line 47) | private function tools(array $testCommands, Filter $filter): Tools method filter (line 57) | private function filter(): Filter