Skip to content

Commit 775dfe3

Browse files
committed
Refactor: Remove legacy test files and related classes
- Deleted multiple test files including HelpersTest, IntegrationTest, MetricsCollectorTest, MiddlewareTest, and others to clean up the codebase. - Removed associated mock classes and stubs that were used for testing purposes. - Updated composer.json to reflect the new namespace structure from Helix to PivotPHP. - Cleaned up legacy bootstrap and configuration files that were no longer needed.
1 parent f3bedcb commit 775dfe3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+10
-3825
lines changed

CYCLE_ORM_UPDATE_STATUS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ All files have been updated to reflect the PivotPHP branding:
77
### Framework References
88
- Updated from "Express PHP" to "PivotPHP"
99
- Updated from "PivotPHP" to "PivotPHP"
10-
- Updated namespace references from `PivotPHP\Core\` to `Helix\`
10+
- Updated namespace references to `PivotPHP\CycleORM\`
1111

1212
### Documentation Structure
1313
- Fixed typo: "techinical" → "technical"
@@ -20,13 +20,13 @@ All files have been updated to reflect the PivotPHP branding:
2020

2121
### Package Information
2222
- ✅ Package name: `pivotphp/cycle-orm`
23-
- ✅ Namespace: `Helix\CycleORM\`
23+
- ✅ Namespace: `PivotPHP\CycleORM\`
2424
- ✅ Framework dependency: `pivotphp/core`
2525

2626
### Files Updated
2727
- ✅ Documentation (docs/)
2828
- ✅ Scripts (scripts/)
29-
- ✅ Legacy files (legacy/)
29+
- ✅ Legacy files removed
3030
- ✅ README.md
3131
- ✅ CHANGELOG.md
3232

PHPSTAN_FIXES_SUMMARY.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This document summarizes the changes made to fix PHPStan errors in the pivotphp-
66

77
1. **Private/Protected Property Access**: Fixed direct access to private properties of `PivotPHP\Core\Http\Request`
88
2. **Type Mismatch**: Resolved issues with `CycleRequest` vs `Request` type compatibility
9-
3. **Namespace References**: Updated old `Helix` namespace references to `PivotPHP\Core`
9+
3. **Namespace References**: Updated old namespace references to `PivotPHP\Core`
1010

1111
## Files Modified
1212

@@ -27,8 +27,8 @@ This document summarizes the changes made to fix PHPStan errors in the pivotphp-
2727
- Simplified middleware logic by removing CycleRequest instance checks
2828

2929
### 4. `/phpstan.neon`
30-
- Removed obsolete `Helix\Http\Request` ignore pattern
31-
- Updated `universalObjectCratesClasses` from `Helix\*` to `PivotPHP\Core\*` namespaces
30+
- Updated namespace patterns in configuration
31+
- Updated `universalObjectCratesClasses` to `PivotPHP\Core\*` namespaces
3232

3333
## Result
3434

docs/quick-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require 'vendor/autoload.php';
1414
use PivotPHP\Core\CycleORM\CycleServiceProvider;
1515
use PivotPHP\Core\CycleORM\Middleware\CycleMiddleware;
1616

17-
$app = new Helix\Core\Application();
17+
$app = new PivotPHP\Core\Application();
1818

1919
// Configurar banco
2020
$_ENV['DB_CONNECTION'] = 'sqlite';

docs/technical/http/cycle_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CycleRequest
22

3-
O objeto `CycleRequest` é um wrapper que estende o `Helix\Http\Request` para integrar recursos do Cycle ORM diretamente na requisição, mantendo compatibilidade total com o objeto original.
3+
O objeto `CycleRequest` é um wrapper que estende o `PivotPHP\Core\Http\Request` para integrar recursos do Cycle ORM diretamente na requisição, mantendo compatibilidade total com o objeto original.
44

55
## Visão Geral
66
Permite acessar ORM, EntityManager, Database, usuário autenticado e informações de autenticação diretamente na requisição, facilitando o desenvolvimento de middlewares e handlers avançados.

legacy/CommandRegistryTest.php

Lines changed: 0 additions & 48 deletions
This file was deleted.

legacy/CommandsTest.php

Lines changed: 0 additions & 148 deletions
This file was deleted.

legacy/Container.php

Lines changed: 0 additions & 26 deletions
This file was deleted.

legacy/CycleORMExceptionTest.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

legacy/CycleRequestExtraTest.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

legacy/CycleRequestTest.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)