From 7249a224dec9303adcf594f0a79bde660bb756cc Mon Sep 17 00:00:00 2001 From: Dennis Riehle Date: Sun, 29 Dec 2024 18:17:57 +0100 Subject: [PATCH] renamed abstract test case class not to cause errors --- tests/{AbstractTest.php => AbstractTestCase.php} | 2 +- tests/Doctrine/AuthenticationAdapterFactoryTest.php | 4 ++-- tests/Doctrine/AuthenticationServiceFactoryTest.php | 4 ++-- tests/Doctrine/AuthenticationStorageFactoryTest.php | 4 ++-- tests/Doctrine/ConfigurationFactoryTest.php | 4 ++-- tests/Doctrine/ConnectionFactoryTest.php | 4 ++-- tests/Doctrine/CustomDefaultRepositoryTest.php | 4 ++-- tests/Doctrine/DocumentManagerTest.php | 4 ++-- tests/Doctrine/MongoLoggerCollectorFactoryTest.php | 4 ++-- tests/Doctrine/PersistTest.php | 4 ++-- 10 files changed, 19 insertions(+), 19 deletions(-) rename tests/{AbstractTest.php => AbstractTestCase.php} (96%) diff --git a/tests/AbstractTest.php b/tests/AbstractTestCase.php similarity index 96% rename from tests/AbstractTest.php rename to tests/AbstractTestCase.php index fd8c0a9..7e5265a 100644 --- a/tests/AbstractTest.php +++ b/tests/AbstractTestCase.php @@ -10,7 +10,7 @@ use MongoDB\Driver\WriteConcern; use PHPUnit\Framework\TestCase; -abstract class AbstractTest extends TestCase +abstract class AbstractTestCase extends TestCase { protected mixed $application; diff --git a/tests/Doctrine/AuthenticationAdapterFactoryTest.php b/tests/Doctrine/AuthenticationAdapterFactoryTest.php index d674c41..2e0a435 100644 --- a/tests/Doctrine/AuthenticationAdapterFactoryTest.php +++ b/tests/Doctrine/AuthenticationAdapterFactoryTest.php @@ -4,9 +4,9 @@ namespace DoctrineMongoODMModuleTest\Doctrine; -use DoctrineMongoODMModuleTest\AbstractTest; +use DoctrineMongoODMModuleTest\AbstractTestCase; -class AuthenticationAdapterFactoryTest extends AbstractTest +class AuthenticationAdapterFactoryTest extends AbstractTestCase { public function testAuthenticationAdapterFactory(): void { diff --git a/tests/Doctrine/AuthenticationServiceFactoryTest.php b/tests/Doctrine/AuthenticationServiceFactoryTest.php index 24c86f0..e35984b 100644 --- a/tests/Doctrine/AuthenticationServiceFactoryTest.php +++ b/tests/Doctrine/AuthenticationServiceFactoryTest.php @@ -4,9 +4,9 @@ namespace DoctrineMongoODMModuleTest\Doctrine; -use DoctrineMongoODMModuleTest\AbstractTest; +use DoctrineMongoODMModuleTest\AbstractTestCase; -class AuthenticationServiceFactoryTest extends AbstractTest +class AuthenticationServiceFactoryTest extends AbstractTestCase { public function testAuthenticationServiceFactory(): void { diff --git a/tests/Doctrine/AuthenticationStorageFactoryTest.php b/tests/Doctrine/AuthenticationStorageFactoryTest.php index c7268bc..4d973e3 100644 --- a/tests/Doctrine/AuthenticationStorageFactoryTest.php +++ b/tests/Doctrine/AuthenticationStorageFactoryTest.php @@ -4,9 +4,9 @@ namespace DoctrineMongoODMModuleTest\Doctrine; -use DoctrineMongoODMModuleTest\AbstractTest; +use DoctrineMongoODMModuleTest\AbstractTestCase; -class AuthenticationStorageFactoryTest extends AbstractTest +class AuthenticationStorageFactoryTest extends AbstractTestCase { public function testAuthenticationStorageFactory(): void { diff --git a/tests/Doctrine/ConfigurationFactoryTest.php b/tests/Doctrine/ConfigurationFactoryTest.php index 4182688..295f777 100644 --- a/tests/Doctrine/ConfigurationFactoryTest.php +++ b/tests/Doctrine/ConfigurationFactoryTest.php @@ -13,7 +13,7 @@ use Doctrine\ODM\MongoDB\Types\Type; use Doctrine\Persistence\Mapping\Driver\MappingDriver; use DoctrineMongoODMModule\Service\ConfigurationFactory; -use DoctrineMongoODMModuleTest\AbstractTest; +use DoctrineMongoODMModuleTest\AbstractTestCase; use DoctrineMongoODMModuleTest\Assets\CustomClassMetadataFactory; use DoctrineMongoODMModuleTest\Assets\CustomDocumentRepository; use DoctrineMongoODMModuleTest\Assets\CustomRepositoryFactory; @@ -22,7 +22,7 @@ use function assert; -final class ConfigurationFactoryTest extends AbstractTest +final class ConfigurationFactoryTest extends AbstractTestCase { public function testCreation(): void { diff --git a/tests/Doctrine/ConnectionFactoryTest.php b/tests/Doctrine/ConnectionFactoryTest.php index 1b010fa..3dfcbd6 100644 --- a/tests/Doctrine/ConnectionFactoryTest.php +++ b/tests/Doctrine/ConnectionFactoryTest.php @@ -6,11 +6,11 @@ use Doctrine\ODM\MongoDB\Configuration; use DoctrineMongoODMModule\Service\ConnectionFactory; -use DoctrineMongoODMModuleTest\AbstractTest; +use DoctrineMongoODMModuleTest\AbstractTestCase; use MongoDB\Client; /** @covers \DoctrineMongoODMModule\Service\ConnectionFactory */ -class ConnectionFactoryTest extends AbstractTest +class ConnectionFactoryTest extends AbstractTestCase { /** @var mixed[] $configuration */ private array $configuration; diff --git a/tests/Doctrine/CustomDefaultRepositoryTest.php b/tests/Doctrine/CustomDefaultRepositoryTest.php index 5ab6e1d..994f1fb 100644 --- a/tests/Doctrine/CustomDefaultRepositoryTest.php +++ b/tests/Doctrine/CustomDefaultRepositoryTest.php @@ -4,13 +4,13 @@ namespace DoctrineMongoODMModuleTest\Doctrine; -use DoctrineMongoODMModuleTest\AbstractTest; +use DoctrineMongoODMModuleTest\AbstractTestCase; use DoctrineMongoODMModuleTest\Assets\CustomDocumentRepository; use DoctrineMongoODMModuleTest\Assets\Document\Simple; use function assert; -final class CustomDefaultRepositoryTest extends AbstractTest +final class CustomDefaultRepositoryTest extends AbstractTestCase { public function testCustomDefaultRepository(): void { diff --git a/tests/Doctrine/DocumentManagerTest.php b/tests/Doctrine/DocumentManagerTest.php index c9a369a..04cf6cd 100644 --- a/tests/Doctrine/DocumentManagerTest.php +++ b/tests/Doctrine/DocumentManagerTest.php @@ -5,9 +5,9 @@ namespace DoctrineMongoODMModuleTest\Doctrine; use Doctrine\ODM\MongoDB\DocumentManager; -use DoctrineMongoODMModuleTest\AbstractTest; +use DoctrineMongoODMModuleTest\AbstractTestCase; -final class DocumentManagerTest extends AbstractTest +final class DocumentManagerTest extends AbstractTestCase { /** @var mixed[] $configuration */ private array $configuration = []; diff --git a/tests/Doctrine/MongoLoggerCollectorFactoryTest.php b/tests/Doctrine/MongoLoggerCollectorFactoryTest.php index bc9b0dc..d0a45d7 100644 --- a/tests/Doctrine/MongoLoggerCollectorFactoryTest.php +++ b/tests/Doctrine/MongoLoggerCollectorFactoryTest.php @@ -6,9 +6,9 @@ use DoctrineMongoODMModule\Collector\MongoLoggerCollector; use DoctrineMongoODMModule\Service\MongoLoggerCollectorFactory; -use DoctrineMongoODMModuleTest\AbstractTest; +use DoctrineMongoODMModuleTest\AbstractTestCase; -class MongoLoggerCollectorFactoryTest extends AbstractTest +class MongoLoggerCollectorFactoryTest extends AbstractTestCase { public function testCreateService(): void { diff --git a/tests/Doctrine/PersistTest.php b/tests/Doctrine/PersistTest.php index 4516b73..6a2553b 100644 --- a/tests/Doctrine/PersistTest.php +++ b/tests/Doctrine/PersistTest.php @@ -4,10 +4,10 @@ namespace DoctrineMongoODMModuleTest\Doctrine; -use DoctrineMongoODMModuleTest\AbstractTest; +use DoctrineMongoODMModuleTest\AbstractTestCase; use DoctrineMongoODMModuleTest\Assets\Document\Simple; -class PersistTest extends AbstractTest +class PersistTest extends AbstractTestCase { public function testPersist(): void {