Skip to content

Commit

Permalink
rename suite to testsuite make it consistent with phpunit naming conv…
Browse files Browse the repository at this point in the history
…ention
  • Loading branch information
cdekok committed Feb 20, 2017
1 parent 5710baa commit e76c16d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions doc/tasks/phpunit.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ parameters:
tasks:
phpunit:
config_file: ~
suite: ~
testsuite: ~
group: []
always_execute: false
```
Expand All @@ -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**

Expand Down
6 changes: 3 additions & 3 deletions src/Task/Phpunit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e76c16d

Please sign in to comment.