Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 18, 2024
1 parent b998240 commit d4030ef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unit/TextUI/Configuration/Cli/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,10 @@ public function testGroup(): void
$this->assertSame(['string'], $configuration->groups());
}

#[TestDox('--group string,another-string')]
#[TestDox('--group string --group another-string')]
public function testGroups(): void
{
$configuration = (new Builder)->fromParameters(['--group', 'string,another-string']);
$configuration = (new Builder)->fromParameters(['--group', 'string', '--group', 'another-string']);

$this->assertTrue($configuration->hasGroups());
$this->assertSame(['string', 'another-string'], $configuration->groups());
Expand All @@ -651,10 +651,10 @@ public function testExcludeGroup(): void
$this->assertSame(['string'], $configuration->excludeGroups());
}

#[TestDox('--exclude-group string,another-string')]
#[TestDox('--exclude-group string --exclude-group another-string')]
public function testExcludeGroups(): void
{
$configuration = (new Builder)->fromParameters(['--exclude-group', 'string,another-string']);
$configuration = (new Builder)->fromParameters(['--exclude-group', 'string', '--exclude-group', 'another-string']);

$this->assertTrue($configuration->hasExcludeGroups());
$this->assertSame(['string', 'another-string'], $configuration->excludeGroups());
Expand Down Expand Up @@ -720,10 +720,10 @@ public function testTestSuffix(): void
$this->assertSame(['string'], $configuration->testSuffixes());
}

#[TestDox('--test-suffix string,another-string')]
#[TestDox('--test-suffix string --test-suffix another-string')]
public function testTestSuffixes(): void
{
$configuration = (new Builder)->fromParameters(['--test-suffix', 'string,another-string']);
$configuration = (new Builder)->fromParameters(['--test-suffix', 'string', '--test-suffix', 'another-string']);

$this->assertTrue($configuration->hasTestSuffixes());
$this->assertSame(['string', 'another-string'], $configuration->testSuffixes());
Expand Down

0 comments on commit d4030ef

Please sign in to comment.