Skip to content

Commit

Permalink
Remove code coverage node ignorer
Browse files Browse the repository at this point in the history
  • Loading branch information
maks-rafalko committed May 4, 2021
1 parent 6ed4cda commit e64900c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
12 changes: 1 addition & 11 deletions src/TestFramework/PhpUnit/Adapter/PestAdapter.php
Expand Up @@ -37,16 +37,14 @@

use Infection\AbstractTestFramework\MemoryUsageAware;
use Infection\AbstractTestFramework\TestFrameworkAdapter;
use Infection\PhpParser\Visitor\IgnoreNode\PhpUnitCodeCoverageAnnotationIgnorer;
use Infection\TestFramework\IgnoresAdditionalNodes;
use Infection\TestFramework\ProvidesInitialRunOnlyOptions;
use function Safe\preg_match;
use function Safe\sprintf;

/**
* @internal
*/
final class PestAdapter implements IgnoresAdditionalNodes, MemoryUsageAware, ProvidesInitialRunOnlyOptions, TestFrameworkAdapter
final class PestAdapter implements MemoryUsageAware, ProvidesInitialRunOnlyOptions, TestFrameworkAdapter
{
private const NAME = 'Pest';

Expand Down Expand Up @@ -114,14 +112,6 @@ public function getMemoryUsed(string $output): float
return $this->phpUnitAdapter->getMemoryUsed($output);
}

/**
* @return PhpUnitCodeCoverageAnnotationIgnorer[]
*/
public function getNodeIgnorers(): array
{
return $this->phpUnitAdapter->getNodeIgnorers();
}

/**
* @return string[]
*/
Expand Down
12 changes: 0 additions & 12 deletions tests/phpunit/TestFramework/PhpUnit/Adapter/PestAdapterTest.php
Expand Up @@ -35,10 +35,8 @@

namespace Infection\Tests\TestFramework\PhpUnit\Adapter;

use function array_map;
use const DIRECTORY_SEPARATOR;
use Infection\Config\ValueProvider\PCOVDirectoryProvider;
use Infection\PhpParser\Visitor\IgnoreNode\PhpUnitCodeCoverageAnnotationIgnorer;
use Infection\TestFramework\CommandLineArgumentsAndOptionsBuilder;
use Infection\TestFramework\CommandLineBuilder;
use Infection\TestFramework\PhpUnit\Adapter\PestAdapter;
Expand Down Expand Up @@ -124,16 +122,6 @@ public function test_it_provides_initial_run_only_options(): void
);
}

public function test_it_provides_node_ignorers(): void
{
$nodeIgnorers = array_map('get_class', $this->adapter->getNodeIgnorers());

$this->assertSame(
[PhpUnitCodeCoverageAnnotationIgnorer::class],
$nodeIgnorers
);
}

/**
* @group integration
*/
Expand Down

0 comments on commit e64900c

Please sign in to comment.