diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..d973a01c
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,5 @@
+/.* export-ignore
+/Tests export-ignore
+/DEVELOPER-GUIDE.md export-ignore
+/phplint.sh export-ignore
+/phpunit.xml.dist export-ignore
diff --git a/lib/Tests/Fhp/CLILogger.php b/Tests/CLILogger.php
similarity index 79%
rename from lib/Tests/Fhp/CLILogger.php
rename to Tests/CLILogger.php
index 655504f8..96a1526b 100644
--- a/lib/Tests/Fhp/CLILogger.php
+++ b/Tests/CLILogger.php
@@ -1,12 +1,14 @@
assertNotEmpty($this->expectedMessages, "Expected no more requests, but got: $request");
- list($expectedRequest, $mockResponse) = array_shift($this->expectedMessages);
+ [$expectedRequest, $mockResponse] = array_shift($this->expectedMessages);
// Check that the request matches the expectation.
if (strlen($expectedRequest) > 0 && !str_starts_with($expectedRequest, 'HNHBK')) {
diff --git a/lib/Tests/Fhp/Integration/Atruvia/AtruviaIntegrationTestBase.php b/Tests/Unit/Integration/Atruvia/AtruviaIntegrationTestBase.php
similarity index 99%
rename from lib/Tests/Fhp/Integration/Atruvia/AtruviaIntegrationTestBase.php
rename to Tests/Unit/Integration/Atruvia/AtruviaIntegrationTestBase.php
index efdd4555..d03e7479 100644
--- a/lib/Tests/Fhp/Integration/Atruvia/AtruviaIntegrationTestBase.php
+++ b/Tests/Unit/Integration/Atruvia/AtruviaIntegrationTestBase.php
@@ -1,9 +1,9 @@
register(new SegmentComparator());
diff --git a/lib/Tests/resources/pain.008.002.02.xml b/Tests/resources/pain.008.002.02.xml
similarity index 100%
rename from lib/Tests/resources/pain.008.002.02.xml
rename to Tests/resources/pain.008.002.02.xml
diff --git a/composer.json b/composer.json
index 08e40202..ec8c9c4a 100644
--- a/composer.json
+++ b/composer.json
@@ -6,8 +6,12 @@
"license": "MIT",
"autoload": {
"psr-0": {
- "Fhp": "lib/",
- "Tests\\Fhp": "lib/"
+ "Fhp": "lib/"
+ }
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "Fhp\\Tests\\": "Tests/"
}
},
"require": {
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 82e780f0..2a08cf1b 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -8,8 +8,8 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
- bootstrap="./lib/Tests/phpunit_bootstrap.php"
- xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
+ bootstrap="./Tests/phpunit_bootstrap.php"
+ xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd">
./lib/Fhp/
@@ -17,7 +17,7 @@
- ./lib/Tests/Fhp/
+ Tests/Unit/