From b1ae8845f89946d99907d72a769defca68e60c1f Mon Sep 17 00:00:00 2001 From: Edward Surov Date: Wed, 15 Sep 2021 13:42:13 +0300 Subject: [PATCH] remove host label api (via #8) --- .github/workflows/build.yml | 12 ++---------- src/Allure.php | 5 ----- test/AllureTest.php | 17 ----------------- test/Model/TemporaryTest.php | 1 - 4 files changed, 2 insertions(+), 33 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a44d97..0bc2ecb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,20 +40,12 @@ jobs: php-version: ${{ matrix.php-version }} extensions: pcntl, posix coverage: xdebug - - - name: Install dependencies - if: ${{ matrix.php-version != '8.1' }} - run: composer update - --prefer-dist - --no-progress - ${{ matrix.composer-options }} + ini-values: error_reporting=E_ALL - - name: Install dependencies (experimental) - if: ${{ matrix.php-version == '8.1' }} + - name: Install dependencies run: composer update --prefer-dist --no-progress - --ignore-platform-req=php ${{ matrix.composer-options }} - name: Run tests diff --git a/src/Allure.php b/src/Allure.php index 29328d3..2098f6e 100644 --- a/src/Allure.php +++ b/src/Allure.php @@ -204,11 +204,6 @@ public static function lead(string $value): void self::getInstance()->doLabel(Label::lead($value)); } - public static function host(string $value): void - { - self::getInstance()->doLabel(Label::host($value)); - } - public static function package(string $value): void { self::getInstance()->doLabel(Label::package($value)); diff --git a/test/AllureTest.php b/test/AllureTest.php index 1c4caf4..7669c76 100644 --- a/test/AllureTest.php +++ b/test/AllureTest.php @@ -711,23 +711,6 @@ public function testLead_GivenValue_TestHasMatchingLabel(): void self::assertSame('c', $label?->getValue()); } - public function testHost_GivenValue_TestHasMatchingLabel(): void - { - $test = new TestResult('a'); - Allure::setLifecycleBuilder( - $this->createLifecycleBuilder( - $this->createResultFactoryWithTest($test), - $this->createLifecycleWithUpdatableTest($test), - ), - ); - - Allure::setOutputDirectory('b'); - Allure::host('c'); - $label = $test->getLabels()[0] ?? null; - self::assertSame('host', $label?->getName()); - self::assertSame('c', $label?->getValue()); - } - public function testPackage_GivenValue_TestHasMatchingLabel(): void { $test = new TestResult('a'); diff --git a/test/Model/TemporaryTest.php b/test/Model/TemporaryTest.php index bd6f276..303b165 100644 --- a/test/Model/TemporaryTest.php +++ b/test/Model/TemporaryTest.php @@ -87,7 +87,6 @@ public function testLifecycle(): void Allure::owner('Owner label'); Allure::lead('Lead label'); Allure::label('Label name', 'Label value'); - Allure::host('Host label'); Allure::severity(Severity::critical()); Allure::parameter('Test param1 name', 'Test param1 value'); Allure::parameter('Test param2 name', null);