From 54f0b60f4de1681724ae69cfaa4879359cd8fd14 Mon Sep 17 00:00:00 2001 From: Joshua Estes Date: Fri, 3 Nov 2023 10:30:39 -0400 Subject: [PATCH] [FeatureToggle] Make codecoverage stop bitching (#80) --- Makefile | 3 +++ phpunit.xml.dist | 4 ++++ src/SonsOfPHP/Component/FeatureToggle/Tests/ContextTest.php | 2 +- src/SonsOfPHP/Component/FeatureToggle/Tests/FeatureTest.php | 2 +- .../Tests/Provider/InMemoryFeatureToggleProviderTest.php | 2 +- .../FeatureToggle/Tests/Toggle/AlwaysDisabledToggleTest.php | 2 +- .../FeatureToggle/Tests/Toggle/AlwaysEnabledToggleTest.php | 2 +- 7 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 7f9258a6..b1e055da 100644 --- a/Makefile +++ b/Makefile @@ -66,6 +66,9 @@ coverage-event-dispatcher: coverage-event-sourcing: XDEBUG_MODE=coverage $(PHP) -dxdebug.mode=coverage $(PHPUNIT) --testsuite event-sourcing --coverage-html $(COVERAGE_DIR) +coverage-feature-toggle: + XDEBUG_MODE=coverage $(PHP) -dxdebug.mode=coverage $(PHPUNIT) --testsuite feature-toggle --coverage-html $(COVERAGE_DIR) + coverage-http-factory: XDEBUG_MODE=coverage $(PHP) -dxdebug.mode=coverage $(PHPUNIT) --testsuite http-factory --coverage-html $(COVERAGE_DIR) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 3fe5f0dc..2fd2e9c0 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -30,6 +30,10 @@ src/SonsOfPHP/Component/EventSourcing/Tests + + src/SonsOfPHP/Component/FeatureToggle/Tests + + src/SonsOfPHP/Component/HttpFactory/Tests diff --git a/src/SonsOfPHP/Component/FeatureToggle/Tests/ContextTest.php b/src/SonsOfPHP/Component/FeatureToggle/Tests/ContextTest.php index 2bcd3965..d89491ea 100644 --- a/src/SonsOfPHP/Component/FeatureToggle/Tests/ContextTest.php +++ b/src/SonsOfPHP/Component/FeatureToggle/Tests/ContextTest.php @@ -11,7 +11,7 @@ /** * @coversDefaultClass \SonsOfPHP\Component\FeatureToggle\Context * - * @internal + * @uses \SonsOfPHP\Component\FeatureToggle\Context */ final class ContextTest extends TestCase { diff --git a/src/SonsOfPHP/Component/FeatureToggle/Tests/FeatureTest.php b/src/SonsOfPHP/Component/FeatureToggle/Tests/FeatureTest.php index aeaa08f3..fee35644 100644 --- a/src/SonsOfPHP/Component/FeatureToggle/Tests/FeatureTest.php +++ b/src/SonsOfPHP/Component/FeatureToggle/Tests/FeatureTest.php @@ -13,7 +13,7 @@ /** * @coversDefaultClass \SonsOfPHP\Component\FeatureToggle\Feature * - * @internal + * @uses \SonsOfPHP\Component\FeatureToggle\Context */ final class FeatureTest extends TestCase { diff --git a/src/SonsOfPHP/Component/FeatureToggle/Tests/Provider/InMemoryFeatureToggleProviderTest.php b/src/SonsOfPHP/Component/FeatureToggle/Tests/Provider/InMemoryFeatureToggleProviderTest.php index c8e5ea81..4d8fa666 100644 --- a/src/SonsOfPHP/Component/FeatureToggle/Tests/Provider/InMemoryFeatureToggleProviderTest.php +++ b/src/SonsOfPHP/Component/FeatureToggle/Tests/Provider/InMemoryFeatureToggleProviderTest.php @@ -14,7 +14,7 @@ /** * @coversDefaultClass \SonsOfPHP\Component\FeatureToggle\Provider\InMemoryFeatureToggleProvider * - * @internal + * @uses \SonsOfPHP\Component\FeatureToggle\Feature */ final class InMemoryFeatureToggleProviderTest extends TestCase { diff --git a/src/SonsOfPHP/Component/FeatureToggle/Tests/Toggle/AlwaysDisabledToggleTest.php b/src/SonsOfPHP/Component/FeatureToggle/Tests/Toggle/AlwaysDisabledToggleTest.php index 5e11d392..4aaa4e3f 100644 --- a/src/SonsOfPHP/Component/FeatureToggle/Tests/Toggle/AlwaysDisabledToggleTest.php +++ b/src/SonsOfPHP/Component/FeatureToggle/Tests/Toggle/AlwaysDisabledToggleTest.php @@ -12,7 +12,7 @@ /** * @coversDefaultClass \SonsOfPHP\Component\FeatureToggle\Toggle\AlwaysDisabledToggle * - * @internal + * @uses \SonsOfPHP\Component\FeatureToggle\Context */ final class AlwaysDisabledToggleTest extends TestCase { diff --git a/src/SonsOfPHP/Component/FeatureToggle/Tests/Toggle/AlwaysEnabledToggleTest.php b/src/SonsOfPHP/Component/FeatureToggle/Tests/Toggle/AlwaysEnabledToggleTest.php index 8e7619e6..87bd194b 100644 --- a/src/SonsOfPHP/Component/FeatureToggle/Tests/Toggle/AlwaysEnabledToggleTest.php +++ b/src/SonsOfPHP/Component/FeatureToggle/Tests/Toggle/AlwaysEnabledToggleTest.php @@ -12,7 +12,7 @@ /** * @coversDefaultClass \SonsOfPHP\Component\FeatureToggle\Toggle\AlwaysEnabledToggle * - * @internal + * @uses \SonsOfPHP\Component\FeatureToggle\Context */ final class AlwaysEnabledToggleTest extends TestCase {