summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsupahgreg <supahgreg@users.noreply.github.com>2025-10-11 15:39:15 +0000
committersupahgreg <supahgreg@users.noreply.github.com>2025-10-11 15:39:15 +0000
commitcd42738331d3b4cb5791b761038c7456c02c0c77 (patch)
tree8fa71c451dc6672d6cc86893feab3877d84de5b7
parent170cdba1f491e8a9956615f715a7ff5b0182b713 (diff)
Update PHPUnit config+test for 12.x.
-rw-r--r--phpunit.xml12
-rw-r--r--tests/integration/ApiTest.php9
2 files changed, 11 insertions, 10 deletions
diff --git a/phpunit.xml b/phpunit.xml
index 73efc552c..b7a0247cf 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -1,10 +1,16 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/latest/phpunit.xsd"
+ xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.0/phpunit.xsd"
bootstrap="tests/autoload.php"
- verbose="true">
+ verbose="true"
+ cacheDirectory=".phpunit.cache"
+ executionOrder="depends,defects"
+ beStrictAboutOutputDuringTests="true"
+ beStrictAboutTodoAnnotatedTests="true"
+ failOnRisky="true"
+ failOnWarning="true">
<testsuite name="tt-rss">
<directory>tests</directory>
-</testsuite>
+ </testsuite>
</phpunit>
diff --git a/tests/integration/ApiTest.php b/tests/integration/ApiTest.php
index 5cf364217..3287a7735 100644
--- a/tests/integration/ApiTest.php
+++ b/tests/integration/ApiTest.php
@@ -7,13 +7,6 @@ final class ApiTest extends TestCase {
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 +37,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();
}