summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--phpunit.xml2
-rw-r--r--tests/ConfigTest.php2
-rw-r--r--tests/UrlHelperTest.php2
-rw-r--r--tests/integration/ApiTest.php3
-rw-r--r--tests/integration/SanitizerTest.php3
5 files changed, 5 insertions, 7 deletions
diff --git a/phpunit.xml b/phpunit.xml
index b7a0247cf..20a3e63ea 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -2,11 +2,9 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.0/phpunit.xsd"
bootstrap="tests/autoload.php"
- verbose="true"
cacheDirectory=".phpunit.cache"
executionOrder="depends,defects"
beStrictAboutOutputDuringTests="true"
- beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true">
<testsuite name="tt-rss">
diff --git a/tests/ConfigTest.php b/tests/ConfigTest.php
index ee15df8d3..f36602ae6 100644
--- a/tests/ConfigTest.php
+++ b/tests/ConfigTest.php
@@ -1,7 +1,7 @@
<?php
use PHPUnit\Framework\TestCase;
-final class SelfUrlPathTest extends TestCase {
+final class ConfigTest extends TestCase {
public function test_self_url_a(): void {
$_SERVER = [];
diff --git a/tests/UrlHelperTest.php b/tests/UrlHelperTest.php
index 249a5b412..961af1b30 100644
--- a/tests/UrlHelperTest.php
+++ b/tests/UrlHelperTest.php
@@ -4,8 +4,6 @@ use GuzzleHttp\Client;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Response;
-use GuzzleHttp\Psr7\Request;
-use GuzzleHttp\Exception\RequestException;
use PHPUnit\Framework\TestCase;
final class UrlHelperTest extends TestCase {
diff --git a/tests/integration/ApiTest.php b/tests/integration/ApiTest.php
index 3287a7735..c7fe534fe 100644
--- a/tests/integration/ApiTest.php
+++ b/tests/integration/ApiTest.php
@@ -1,7 +1,8 @@
<?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 = "";
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(