Skip to content

Commit b1ae884

Browse files
authored
remove host label api (via #8)
1 parent 130b7a9 commit b1ae884

File tree

4 files changed

+2
-33
lines changed

4 files changed

+2
-33
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,12 @@ jobs:
4040
php-version: ${{ matrix.php-version }}
4141
extensions: pcntl, posix
4242
coverage: xdebug
43-
44-
- name: Install dependencies
45-
if: ${{ matrix.php-version != '8.1' }}
46-
run: composer update
47-
--prefer-dist
48-
--no-progress
49-
${{ matrix.composer-options }}
43+
ini-values: error_reporting=E_ALL
5044

51-
- name: Install dependencies (experimental)
52-
if: ${{ matrix.php-version == '8.1' }}
45+
- name: Install dependencies
5346
run: composer update
5447
--prefer-dist
5548
--no-progress
56-
--ignore-platform-req=php
5749
${{ matrix.composer-options }}
5850

5951
- name: Run tests

src/Allure.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,6 @@ public static function lead(string $value): void
204204
self::getInstance()->doLabel(Label::lead($value));
205205
}
206206

207-
public static function host(string $value): void
208-
{
209-
self::getInstance()->doLabel(Label::host($value));
210-
}
211-
212207
public static function package(string $value): void
213208
{
214209
self::getInstance()->doLabel(Label::package($value));

test/AllureTest.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -711,23 +711,6 @@ public function testLead_GivenValue_TestHasMatchingLabel(): void
711711
self::assertSame('c', $label?->getValue());
712712
}
713713

714-
public function testHost_GivenValue_TestHasMatchingLabel(): void
715-
{
716-
$test = new TestResult('a');
717-
Allure::setLifecycleBuilder(
718-
$this->createLifecycleBuilder(
719-
$this->createResultFactoryWithTest($test),
720-
$this->createLifecycleWithUpdatableTest($test),
721-
),
722-
);
723-
724-
Allure::setOutputDirectory('b');
725-
Allure::host('c');
726-
$label = $test->getLabels()[0] ?? null;
727-
self::assertSame('host', $label?->getName());
728-
self::assertSame('c', $label?->getValue());
729-
}
730-
731714
public function testPackage_GivenValue_TestHasMatchingLabel(): void
732715
{
733716
$test = new TestResult('a');

test/Model/TemporaryTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ public function testLifecycle(): void
8787
Allure::owner('Owner label');
8888
Allure::lead('Lead label');
8989
Allure::label('Label name', 'Label value');
90-
Allure::host('Host label');
9190
Allure::severity(Severity::critical());
9291
Allure::parameter('Test param1 name', 'Test param1 value');
9392
Allure::parameter('Test param2 name', null);

0 commit comments

Comments
 (0)