Skip to content

Commit

Permalink
Delete tests for functionality that has been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 18, 2024
1 parent 52cc152 commit b998240
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions tests/unit/TextUI/Configuration/Cli/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,46 +137,6 @@ public function testCacheResultMayNotBeConfigured(): void
$configuration->cacheResult();
}

#[TestDox('--cache-result file')]
public function testCacheResultFile(): void
{
$configuration = (new Builder)->fromParameters(['--cache-result-file', 'file']);

$this->assertTrue($configuration->hasCacheResultFile());
$this->assertSame('file', $configuration->cacheResultFile());
}

public function testCacheResultFileMayNotBeConfigured(): void
{
$configuration = (new Builder)->fromParameters([]);

$this->assertFalse($configuration->hasCacheResultFile());

$this->expectException(Exception::class);

$configuration->cacheResultFile();
}

#[TestDox('--coverage-cache directory')]
public function testCoverageCacheDirectory(): void
{
$configuration = (new Builder)->fromParameters(['--coverage-cache', 'directory']);

$this->assertTrue($configuration->hasCoverageCacheDirectory());
$this->assertSame('directory', $configuration->coverageCacheDirectory());
}

public function testCoverageCacheDirectoryMayNotBeConfigured(): void
{
$configuration = (new Builder)->fromParameters([]);

$this->assertFalse($configuration->hasCoverageCacheDirectory());

$this->expectException(Exception::class);

$configuration->coverageCacheDirectory();
}

#[TestDox('--columns <n>')]
public function testColumnsNumber(): void
{
Expand Down

0 comments on commit b998240

Please sign in to comment.