From e76c16d71e1509de15e6464e7e365a40867feb4a Mon Sep 17 00:00:00 2001 From: Chris de Kok Date: Mon, 20 Feb 2017 18:27:52 +0100 Subject: [PATCH] rename suite to testsuite make it consistent with phpunit naming convention --- doc/tasks/phpunit.md | 6 +++--- src/Task/Phpunit.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/tasks/phpunit.md b/doc/tasks/phpunit.md index c3c8a803c..d8a9fecb7 100644 --- a/doc/tasks/phpunit.md +++ b/doc/tasks/phpunit.md @@ -9,7 +9,7 @@ parameters: tasks: phpunit: config_file: ~ - suite: ~ + testsuite: ~ group: [] always_execute: false ``` @@ -22,12 +22,12 @@ If your phpunit.xml file is located at an exotic location, you can specify your This option is set to `null` by default. This means that `phpunit.xml` or `phpunit.xml.dist` are automatically loaded if one of them exist in the current directory. -**suite** +**testsuite** *Default: null If you wish to only run tests from a certain Suite. -`suite: unit` +`testsuite: unit` **group** diff --git a/src/Task/Phpunit.php b/src/Task/Phpunit.php index d2e0b3dc3..ca2141041 100644 --- a/src/Task/Phpunit.php +++ b/src/Task/Phpunit.php @@ -29,13 +29,13 @@ public function getConfigurableOptions() $resolver = new OptionsResolver(); $resolver->setDefaults([ 'config_file' => null, - 'suite' => null, + 'testsuite' => null, 'group' => [], 'always_execute' => false, ]); $resolver->addAllowedTypes('config_file', ['null', 'string']); - $resolver->addAllowedTypes('suite', ['null', 'string']); + $resolver->addAllowedTypes('testsuite', ['null', 'string']); $resolver->addAllowedTypes('group', ['array']); $resolver->addAllowedTypes('always_execute', ['bool']); @@ -64,7 +64,7 @@ public function run(ContextInterface $context) $arguments = $this->processBuilder->createArgumentsForCommand('phpunit'); $arguments->addOptionalArgument('--configuration=%s', $config['config_file']); - $arguments->addOptionalArgument('--testsuite=%s', $config['suite']); + $arguments->addOptionalArgument('--testsuite=%s', $config['testsuite']); $arguments->addOptionalCommaSeparatedArgument('--group=%s', $config['group']); $process = $this->processBuilder->buildProcess($arguments);