From a7c86343e43497665d54c90740e2feb5000f6b48 Mon Sep 17 00:00:00 2001 From: Ron Rise Date: Wed, 15 Oct 2025 12:17:05 -0400 Subject: [PATCH 1/4] Added .idea --- .dockerignore | 1 - .idea/.gitignore | 8 + .idea/Php-Template.iml | 90 +++++++ .idea/codeception.xml | 12 + .idea/copilot.data.migration.agent.xml | 6 + .idea/copilot.data.migration.ask.xml | 6 + .idea/copilot.data.migration.ask2agent.xml | 6 + .idea/copilot.data.migration.edit.xml | 6 + .idea/inspectionProfiles/Project_Default.xml | 10 + .idea/modules.xml | 8 + .idea/php-test-framework.xml | 14 ++ .idea/php.xml | 119 +++++++++ .idea/phpspec.xml | 10 + .idea/phpunit.xml | 10 + .idea/vcs.xml | 6 + .idea/workspace.xml | 236 ++++++++++++++++++ config.php | 13 +- src/Server.php | 15 +- .../ServiceProviders/RedisServiceProvider.php | 1 + 19 files changed, 561 insertions(+), 16 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/Php-Template.iml create mode 100644 .idea/codeception.xml create mode 100644 .idea/copilot.data.migration.agent.xml create mode 100644 .idea/copilot.data.migration.ask.xml create mode 100644 .idea/copilot.data.migration.ask2agent.xml create mode 100644 .idea/copilot.data.migration.edit.xml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/php-test-framework.xml create mode 100644 .idea/php.xml create mode 100644 .idea/phpspec.xml create mode 100644 .idea/phpunit.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.dockerignore b/.dockerignore index 5c37160..ad1ad9c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,2 @@ -.idea/ vendor/ .phpunit.cache/ \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/Php-Template.iml b/.idea/Php-Template.iml new file mode 100644 index 0000000..ace71b3 --- /dev/null +++ b/.idea/Php-Template.iml @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeception.xml b/.idea/codeception.xml new file mode 100644 index 0000000..330f2dd --- /dev/null +++ b/.idea/codeception.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/.idea/copilot.data.migration.agent.xml b/.idea/copilot.data.migration.agent.xml new file mode 100644 index 0000000..4ea72a9 --- /dev/null +++ b/.idea/copilot.data.migration.agent.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/copilot.data.migration.ask.xml b/.idea/copilot.data.migration.ask.xml new file mode 100644 index 0000000..7ef04e2 --- /dev/null +++ b/.idea/copilot.data.migration.ask.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/copilot.data.migration.ask2agent.xml b/.idea/copilot.data.migration.ask2agent.xml new file mode 100644 index 0000000..1f2ea11 --- /dev/null +++ b/.idea/copilot.data.migration.ask2agent.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/copilot.data.migration.edit.xml b/.idea/copilot.data.migration.edit.xml new file mode 100644 index 0000000..8648f94 --- /dev/null +++ b/.idea/copilot.data.migration.edit.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..d502796 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..469f660 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php-test-framework.xml b/.idea/php-test-framework.xml new file mode 100644 index 0000000..fdad0d5 --- /dev/null +++ b/.idea/php-test-framework.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..7b36a14 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/phpspec.xml b/.idea/phpspec.xml new file mode 100644 index 0000000..33107fd --- /dev/null +++ b/.idea/phpspec.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/phpunit.xml b/.idea/phpunit.xml new file mode 100644 index 0000000..4f8104c --- /dev/null +++ b/.idea/phpunit.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..1aefb10 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,236 @@ + + + + + + + + + + + + + $PROJECT_DIR$/composer.json + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { + "associatedIndex": 8 +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1760539332536 + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/config.php b/config.php index 38739d0..89e4c00 100644 --- a/config.php +++ b/config.php @@ -8,7 +8,7 @@ return [ * The server configuration. */ 'server' => [ - 'port' => Env::get('HTTP_PORT', 9501, 'int'), + 'port' => Env::get('HTTP_PORT', 9501, 'int'), 'dev_mode' => Env::get('DEV_MODE', false, 'bool'), ], @@ -21,9 +21,15 @@ return [ 'database' => Env::get('DB_DATABASE', 'siteworxpro'), 'username' => Env::get('DB_USERNAME', 'siteworxpro'), 'password' => Env::get('DB_PASSWORD', 'password'), + 'port' => Env::get('DB_PORT', 5432, 'int'), + 'charset' => Env::get('DB_CHARSET', 'utf8'), + 'collation' => Env::get('DB_COLLATION', 'utf8_unicode_ci'), + 'prefix' => Env::get('DB_PREFIX', ''), + 'options' => [ + // Add any additional PDO options here + ], ], - 'cors' => [ 'allowed_origins' => Env::get('CORS_ALLOWED_ORIGINS', 'localhost:3000'), 'allow_credentials' => Env::get('CORS_ALLOW_CREDENTIALS', true, 'bool'), @@ -34,5 +40,6 @@ return [ 'host' => Env::get('REDIS_HOST', 'localhost'), 'port' => Env::get('REDIS_PORT', 6379, 'int'), 'database' => Env::get('REDIS_DATABASE', 0, 'int'), + 'password' => Env::get('REDIS_PASSWORD'), ] -]; \ No newline at end of file +]; diff --git a/src/Server.php b/src/Server.php index acb7d03..22a39d3 100644 --- a/src/Server.php +++ b/src/Server.php @@ -5,6 +5,7 @@ declare(strict_types=1); namespace Siteworxpro\App; use Illuminate\Container\Container; +use Illuminate\Database\Capsule\Manager; use Illuminate\Support\ServiceProvider; use League\Route\Http\Exception\MethodNotAllowedException; use League\Route\Http\Exception\NotFoundException; @@ -120,18 +121,8 @@ class Server */ public function bootModelCapsule(): void { - $capsule = new \Illuminate\Database\Capsule\Manager(); - $capsule->addConnection([ - 'driver' => Config::get('db.driver'), - 'host' => Config::get('db.host'), - 'database' => Config::get('db.database'), - 'username' => Config::get('db.username'), - 'password' => Config::get('db.password'), - 'charset' => 'utf8', - 'collation' => 'utf8_unicode_ci', - 'prefix' => '', - ]); - + $capsule = new Manager(); + $capsule->addConnection(Config::get('db')); $capsule->setAsGlobal(); $capsule->bootEloquent(); } diff --git a/src/Services/ServiceProviders/RedisServiceProvider.php b/src/Services/ServiceProviders/RedisServiceProvider.php index 064d050..c22b5a5 100644 --- a/src/Services/ServiceProviders/RedisServiceProvider.php +++ b/src/Services/ServiceProviders/RedisServiceProvider.php @@ -18,6 +18,7 @@ class RedisServiceProvider extends ServiceProvider 'host' => Config::get('redis.host'), 'port' => Config::get('redis.port'), 'database' => Config::get('redis.database'), + 'password' => Config::get('redis.password'), ]); }); } -- 2.49.1 From 54c656551e72a79c45cb4e8eb9547c80e5f0488d Mon Sep 17 00:00:00 2001 From: Ron Rise Date: Wed, 15 Oct 2025 19:44:57 -0400 Subject: [PATCH 2/4] feat: add abstract classes for controllers, facades, and service providers with unit tests --- .idea/.gitignore | 8 - .idea/Php-Template.iml | 90 ------- .idea/codeception.xml | 12 - .idea/copilot.data.migration.agent.xml | 6 - .idea/copilot.data.migration.ask.xml | 6 - .idea/copilot.data.migration.ask2agent.xml | 6 - .idea/copilot.data.migration.edit.xml | 6 - .idea/inspectionProfiles/Project_Default.xml | 10 - .idea/modules.xml | 8 - .idea/php-test-framework.xml | 14 -- .idea/php.xml | 119 --------- .idea/phpspec.xml | 10 - .idea/phpunit.xml | 10 - .idea/vcs.xml | 6 - .idea/workspace.xml | 236 ------------------ README.md | 2 +- src/Controllers/Controller.php | 8 + src/Controllers/ControllerInterface.php | 8 + src/Services/Facade.php | 4 +- tests/Controllers/AbstractController.php | 16 ++ tests/Controllers/ControllerTest.php | 56 +++++ tests/Controllers/IndexControllerTest.php | 25 ++ tests/Facades/AbstractFacade.php | 32 +++ tests/Facades/RedisTest.php | 21 ++ .../AbstractServiceProvider.php | 44 ++++ .../LoggerServiceProviderTest.php | 15 ++ .../RedisServiceProviderTest.php | 15 ++ tests/Unit.php | 14 +- 28 files changed, 254 insertions(+), 553 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/Php-Template.iml delete mode 100644 .idea/codeception.xml delete mode 100644 .idea/copilot.data.migration.agent.xml delete mode 100644 .idea/copilot.data.migration.ask.xml delete mode 100644 .idea/copilot.data.migration.ask2agent.xml delete mode 100644 .idea/copilot.data.migration.edit.xml delete mode 100644 .idea/inspectionProfiles/Project_Default.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/php-test-framework.xml delete mode 100644 .idea/php.xml delete mode 100644 .idea/phpspec.xml delete mode 100644 .idea/phpunit.xml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/workspace.xml create mode 100644 tests/Controllers/AbstractController.php create mode 100644 tests/Controllers/ControllerTest.php create mode 100644 tests/Controllers/IndexControllerTest.php create mode 100644 tests/Facades/AbstractFacade.php create mode 100644 tests/Facades/RedisTest.php create mode 100644 tests/ServiceProviders/AbstractServiceProvider.php create mode 100644 tests/ServiceProviders/LoggerServiceProviderTest.php create mode 100644 tests/ServiceProviders/RedisServiceProviderTest.php diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/Php-Template.iml b/.idea/Php-Template.iml deleted file mode 100644 index ace71b3..0000000 --- a/.idea/Php-Template.iml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/codeception.xml b/.idea/codeception.xml deleted file mode 100644 index 330f2dd..0000000 --- a/.idea/codeception.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/copilot.data.migration.agent.xml b/.idea/copilot.data.migration.agent.xml deleted file mode 100644 index 4ea72a9..0000000 --- a/.idea/copilot.data.migration.agent.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/copilot.data.migration.ask.xml b/.idea/copilot.data.migration.ask.xml deleted file mode 100644 index 7ef04e2..0000000 --- a/.idea/copilot.data.migration.ask.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/copilot.data.migration.ask2agent.xml b/.idea/copilot.data.migration.ask2agent.xml deleted file mode 100644 index 1f2ea11..0000000 --- a/.idea/copilot.data.migration.ask2agent.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/copilot.data.migration.edit.xml b/.idea/copilot.data.migration.edit.xml deleted file mode 100644 index 8648f94..0000000 --- a/.idea/copilot.data.migration.edit.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index d502796..0000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 469f660..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/php-test-framework.xml b/.idea/php-test-framework.xml deleted file mode 100644 index fdad0d5..0000000 --- a/.idea/php-test-framework.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml deleted file mode 100644 index 7b36a14..0000000 --- a/.idea/php.xml +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/phpspec.xml b/.idea/phpspec.xml deleted file mode 100644 index 33107fd..0000000 --- a/.idea/phpspec.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/phpunit.xml b/.idea/phpunit.xml deleted file mode 100644 index 4f8104c..0000000 --- a/.idea/phpunit.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 1aefb10..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,236 +0,0 @@ - - - - - - - - - - - - - $PROJECT_DIR$/composer.json - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { - "associatedIndex": 8 -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1760539332536 - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/README.md b/README.md index 734856b..c60c60e 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ You can access the api at `http://localhost:9501/` xdebug needs to be built into the container before it will work ```shell - docker exec -it template-runtime-1 bin/xdebug.sh + docker exec -it php-template-composer-runtime-1 bin/xdebug.sh ``` ### Install the dependencies diff --git a/src/Controllers/Controller.php b/src/Controllers/Controller.php index 641f6d8..e603520 100644 --- a/src/Controllers/Controller.php +++ b/src/Controllers/Controller.php @@ -28,6 +28,14 @@ abstract class Controller implements ControllerInterface throw new NotFoundException("not found"); } + /** + * @throws NotFoundException + */ + public function put(ServerRequest $request): ResponseInterface + { + throw new NotFoundException("not found"); + } + /** * @throws NotFoundException */ diff --git a/src/Controllers/ControllerInterface.php b/src/Controllers/ControllerInterface.php index 68811fe..e3df828 100644 --- a/src/Controllers/ControllerInterface.php +++ b/src/Controllers/ControllerInterface.php @@ -25,6 +25,14 @@ interface ControllerInterface */ public function post(ServerRequest $request): ResponseInterface; + /** + * Handle the request and return a response. + * + * @param ServerRequest $request The request data. + * @return ResponseInterface The response data. + */ + public function put(ServerRequest $request): ResponseInterface; + /** * Handle the request and return a response. * diff --git a/src/Services/Facade.php b/src/Services/Facade.php index 355259a..7e8140f 100644 --- a/src/Services/Facade.php +++ b/src/Services/Facade.php @@ -278,10 +278,10 @@ class Facade /** * Set the application instance. * - * @param Container $container + * @param Container | null $container * @return void */ - public static function setFacadeContainer(Container $container): void + public static function setFacadeContainer(Container | null $container): void { static::$container = $container; } diff --git a/tests/Controllers/AbstractController.php b/tests/Controllers/AbstractController.php new file mode 100644 index 0000000..084c4c4 --- /dev/null +++ b/tests/Controllers/AbstractController.php @@ -0,0 +1,16 @@ +expectException(\League\Route\Http\Exception\NotFoundException::class); + $testClass->get($this->getMockRequest()); + } + + public function testNotFoundExceptionPost() + { + $testClass = new TestClass(); + + $this->expectException(\League\Route\Http\Exception\NotFoundException::class); + $testClass->post($this->getMockRequest()); + } + + public function testNotFoundExceptionPut() + { + $testClass = new TestClass(); + + $this->expectException(\League\Route\Http\Exception\NotFoundException::class); + $testClass->put($this->getMockRequest()); + } + + public function testNotFoundExceptionDelete() + { + $testClass = new TestClass(); + + $this->expectException(\League\Route\Http\Exception\NotFoundException::class); + $testClass->delete($this->getMockRequest()); + } + + public function testNotFoundExceptionPatch() + { + $testClass = new TestClass(); + + $this->expectException(\League\Route\Http\Exception\NotFoundException::class); + $testClass->patch($this->getMockRequest()); + } +} + +// @ignore +class TestClass extends Controller +{ + +} diff --git a/tests/Controllers/IndexControllerTest.php b/tests/Controllers/IndexControllerTest.php new file mode 100644 index 0000000..ff28901 --- /dev/null +++ b/tests/Controllers/IndexControllerTest.php @@ -0,0 +1,25 @@ +assertTrue(true); + + $controller = new IndexController(); + + $response = $controller->get($this->getMockRequest()); + + $this->assertEquals(200, $response->getStatusCode()); + $this->assertEquals('{"status_code":200,"message":"Server is running"}', (string)$response->getBody()); + } +} diff --git a/tests/Facades/AbstractFacade.php b/tests/Facades/AbstractFacade.php new file mode 100644 index 0000000..32f2294 --- /dev/null +++ b/tests/Facades/AbstractFacade.php @@ -0,0 +1,32 @@ +getFacadeClass(); + + $this->assertTrue( + method_exists($class, 'getFacadeAccessor'), + sprintf('The class %s must implement the method getFacadeAccessor.', $class) + ); + + $facade = $class::getFacadeRoot(); + + $this->assertNotNull( + $facade, + sprintf('The facade %s is not properly initialized.', $this->getConcrete()) + ); + } +} \ No newline at end of file diff --git a/tests/Facades/RedisTest.php b/tests/Facades/RedisTest.php new file mode 100644 index 0000000..f087c20 --- /dev/null +++ b/tests/Facades/RedisTest.php @@ -0,0 +1,21 @@ +getProviderClass(); + + /** @var ServiceProvider $providerClass */ + $provider = new $providerClass($container); + + $this->assertInstanceOf($providerClass, $provider); + $provider->register(); + + $bindings = $provider->bindings; + foreach ($bindings as $abstract => $concrete) { + $this->assertTrue($container->bound($abstract), "The $abstract is not bound in the container."); + $this->assertNotNull($container->make($abstract), "The $abstract could not be resolved."); + + $this->assertInstanceOf( + $concrete, + $container->make($abstract), + "The $abstract is not an instance of $concrete." + ); + } + } +} diff --git a/tests/ServiceProviders/LoggerServiceProviderTest.php b/tests/ServiceProviders/LoggerServiceProviderTest.php new file mode 100644 index 0000000..beb389a --- /dev/null +++ b/tests/ServiceProviders/LoggerServiceProviderTest.php @@ -0,0 +1,15 @@ +bind(SWConfig::class, function () { + return SWConfig::load(__DIR__ . '/../config.php'); + }); } protected function tearDown(): void { Config::clearResolvedInstances(); - Facade::setFacadeApplication(null); + Facade::setFacadeContainer(null); } } -- 2.49.1 From b410c9a46fa4f8e239c0ec182942c5633784bf2c Mon Sep 17 00:00:00 2001 From: Ron Rise Date: Wed, 15 Oct 2025 19:45:52 -0400 Subject: [PATCH 3/4] chore: update .dockerignore and .gitignore to exclude .idea and .DS_Store --- .dockerignore | 2 ++ .gitignore | 1 + 2 files changed, 3 insertions(+) diff --git a/.dockerignore b/.dockerignore index ad1ad9c..1d86eeb 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,4 @@ +.idea/ +.DS_Store vendor/ .phpunit.cache/ \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5c37160..1d86eeb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea/ +.DS_Store vendor/ .phpunit.cache/ \ No newline at end of file -- 2.49.1 From fa1cc47b444c84c705c53c1f63b317c98b8c24b4 Mon Sep 17 00:00:00 2001 From: Ron Rise Date: Wed, 15 Oct 2025 20:17:53 -0400 Subject: [PATCH 4/4] chore: update .dockerignore and .gitignore to exclude .idea and .DS_Store --- tests/Controllers/ControllerTest.php | 4 +--- tests/Facades/AbstractFacade.php | 2 +- tests/ServiceProviders/AbstractServiceProvider.php | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/Controllers/ControllerTest.php b/tests/Controllers/ControllerTest.php index b6d6007..9541a3e 100644 --- a/tests/Controllers/ControllerTest.php +++ b/tests/Controllers/ControllerTest.php @@ -49,8 +49,6 @@ class ControllerTest extends AbstractController } } -// @ignore -class TestClass extends Controller +class TestClass extends Controller // phpcs:ignore { - } diff --git a/tests/Facades/AbstractFacade.php b/tests/Facades/AbstractFacade.php index 32f2294..e224979 100644 --- a/tests/Facades/AbstractFacade.php +++ b/tests/Facades/AbstractFacade.php @@ -29,4 +29,4 @@ abstract class AbstractFacade extends Unit sprintf('The facade %s is not properly initialized.', $this->getConcrete()) ); } -} \ No newline at end of file +} diff --git a/tests/ServiceProviders/AbstractServiceProvider.php b/tests/ServiceProviders/AbstractServiceProvider.php index bd810a3..a5e8c59 100644 --- a/tests/ServiceProviders/AbstractServiceProvider.php +++ b/tests/ServiceProviders/AbstractServiceProvider.php @@ -11,7 +11,6 @@ use Siteworxpro\Tests\Unit; abstract class AbstractServiceProvider extends Unit { - abstract protected function getProviderClass(): string; /** -- 2.49.1