diff options
| author | Greg <supahgreg@users.noreply.github.com> | 2025-10-11 11:43:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-11 11:43:04 -0500 |
| commit | 73e6ade27f9751d3892693be9e11946462e10ed5 (patch) | |
| tree | b2696cebda0a5b81b361e093d27bd80cefdb2b7a /tests/integration | |
| parent | df4630b316f468c772fb4edc7e1dc0a46765542f (diff) | |
| parent | 3bb71c4e6b0bcf803e96413fa30b63490eb43465 (diff) | |
Merge pull request #39 from tt-rss/composer-lock-and-phpunit
Composer cleanup, PHPUnit 9 --> 12
Diffstat (limited to 'tests/integration')
| -rw-r--r-- | tests/integration/ApiTest.php | 12 | ||||
| -rw-r--r-- | tests/integration/SanitizerTest.php | 3 |
2 files changed, 6 insertions, 9 deletions
diff --git a/tests/integration/ApiTest.php b/tests/integration/ApiTest.php index 5cf364217..c7fe534fe 100644 --- a/tests/integration/ApiTest.php +++ b/tests/integration/ApiTest.php @@ -1,19 +1,13 @@ <?php +use PHPUnit\Framework\Attributes\Group; use PHPUnit\Framework\TestCase; -/** @group integration */ +#[Group('integration')] final class ApiTest extends TestCase { private string $api_url = ""; private string $app_url = ""; private string $sid = ""; - function __construct() { - $this->api_url = getenv('API_URL'); - $this->app_url = getenv('APP_URL'); - - parent::__construct(); - } - /** @param array<mixed> $payload * @return array<mixed> */ @@ -44,6 +38,8 @@ final class ApiTest extends TestCase { } public function setUp(): void { + $this->api_url = getenv('API_URL'); + $this->app_url = getenv('APP_URL'); $this->test_login(); } diff --git a/tests/integration/SanitizerTest.php b/tests/integration/SanitizerTest.php index 421d046af..0f15bf0ca 100644 --- a/tests/integration/SanitizerTest.php +++ b/tests/integration/SanitizerTest.php @@ -1,7 +1,8 @@ <?php +use PHPUnit\Framework\Attributes\Group; use PHPUnit\Framework\TestCase; -/** @group integration */ +#[Group('integration')] final class SanitizerTest extends TestCase { public function test_sanitize_non_ascii(): void { $this->assertEquals( |