From 2399b252e415db2bb0feaea0328364aa21894cfd Mon Sep 17 00:00:00 2001 From: ArrayIterator Date: Fri, 10 Nov 2023 08:25:15 +0700 Subject: [PATCH] add change namespace to tests --- composer.json | 6 ++++++ .../Tests => }/Cache/CacheStorageTest.php | 2 +- tests/DNSClientPhpVersionTest.php | 21 ------------------- .../Tests => }/DnsServerStorageTest.php | 2 +- 4 files changed, 8 insertions(+), 23 deletions(-) rename tests/{ArrayAccess/DnsRecord/Tests => }/Cache/CacheStorageTest.php (99%) delete mode 100644 tests/DNSClientPhpVersionTest.php rename tests/{ArrayAccess/DnsRecord/Tests => }/DnsServerStorageTest.php (99%) diff --git a/composer.json b/composer.json index 2cbadf8..4c62f35 100644 --- a/composer.json +++ b/composer.json @@ -29,5 +29,11 @@ "psr-4": { "ArrayAccess\\DnsRecord\\": "src/" } + }, + "autoload-dev": { + "psr-4": { + "ArrayAccess\\DnsRecord\\": "src/", + "Tests\\ArrayAccess\\DnsRecord\\": "tests/" + } } } diff --git a/tests/ArrayAccess/DnsRecord/Tests/Cache/CacheStorageTest.php b/tests/Cache/CacheStorageTest.php similarity index 99% rename from tests/ArrayAccess/DnsRecord/Tests/Cache/CacheStorageTest.php rename to tests/Cache/CacheStorageTest.php index 3c7d585..7b12ca8 100644 --- a/tests/ArrayAccess/DnsRecord/Tests/Cache/CacheStorageTest.php +++ b/tests/Cache/CacheStorageTest.php @@ -1,7 +1,7 @@ assertTrue( - version_compare(phpversion(), '8.1', '>='), - sprintf( - 'Php version should greater than %s', - '8.1' - ) - ); - } - } -} diff --git a/tests/ArrayAccess/DnsRecord/Tests/DnsServerStorageTest.php b/tests/DnsServerStorageTest.php similarity index 99% rename from tests/ArrayAccess/DnsRecord/Tests/DnsServerStorageTest.php rename to tests/DnsServerStorageTest.php index b5ce217..e56aadc 100644 --- a/tests/ArrayAccess/DnsRecord/Tests/DnsServerStorageTest.php +++ b/tests/DnsServerStorageTest.php @@ -1,7 +1,7 @@