Skip to content

Commit

Permalink
[PHPUnit] Fix some false bad code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rbayet authored and PierreGauthier committed Jan 10, 2023
1 parent 7d1c864 commit 896ac91
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
<directory suffix=".php">src</directory>
</include>
<exclude>
<directory suffix=".php">src/**/**/src/**/Tests</directory>
<directory suffix=".php">src/**/**/src/**/DataFixtures</directory>
<directory suffix=".php">src/Elasticsuite/**/**/**/Tests</directory>
<directory suffix=".php">src/Elasticsuite/**/**/**/DataFixtures</directory>
<directory suffix=".php">src/Acme</directory>
<directory suffix=".php">src/Elasticsuite/Standard/tests</directory>
</exclude>
Expand Down
2 changes: 2 additions & 0 deletions api/src/Elasticsuite/Premium/.php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

declare(strict_types=1);

// @codeCoverageIgnoreStart
$header = <<<'HEADER'
DISCLAIMER
Expand Down Expand Up @@ -131,3 +132,4 @@
'void_return' => false, // BC breaks; to be done in API Platform 3.0
])
->setFinder($finder);
// @codeCoverageIgnoreEnd
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

/**
* @codeCoverageIgnore
*/
class ElasticsuiteVirtualCategoryExtension extends Extension implements PrependExtensionInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
* @codeCoverageIgnore
*/
class ElasticsuiteVirtualCategoryBundle extends Bundle
{
public function getPath(): string
Expand Down
2 changes: 2 additions & 0 deletions api/src/Elasticsuite/Standard/.php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

declare(strict_types=1);

// @codeCoverageIgnoreStart
$header = <<<'HEADER'
DISCLAIMER
Expand Down Expand Up @@ -133,3 +134,4 @@
'void_return' => false, // BC breaks; to be done in API Platform 3.0
])
->setFinder($finder);
// @codeCoverageIgnoreEnd

0 comments on commit 896ac91

Please sign in to comment.