@@ -150,11 +150,11 @@ private function validateMiddlewares()
150150 echo "🛡️ Validando middlewares... \n" ;
151151
152152 // Verificar SecurityHeaderMiddleware (PSR-15)
153- if (class_exists ('Helix \\Http \\Psr15 \\Middleware \\SecurityHeaderMiddleware ' )) {
153+ if (class_exists ('PivotPHP \\ Core \\Http \\Psr15 \\Middleware \\SecurityHeaderMiddleware ' )) {
154154 $ this ->passed [] = "SecurityHeaderMiddleware carregado " ;
155155
156156 try {
157- $ security = new \Helix \Http \Psr15 \Middleware \SecurityHeadersMiddleware ();
157+ $ security = new \PivotPHP \ Core \Http \Psr15 \Middleware \SecurityHeadersMiddleware ();
158158 $ this ->passed [] = "SecurityHeaderMiddleware pode ser instanciado " ;
159159 } catch (Exception $ e ) {
160160 $ this ->errors [] = "Erro ao instanciar SecurityHeaderMiddleware: " . $ e ->getMessage ();
@@ -164,12 +164,12 @@ private function validateMiddlewares()
164164 }
165165
166166 // Verificar JWTHelper
167- if (class_exists ('Helix \\Authentication \\JWTHelper ' )) {
167+ if (class_exists ('PivotPHP \\ Core \\Authentication \\JWTHelper ' )) {
168168 $ this ->passed [] = "JWTHelper carregado " ;
169169
170170 // Testar geração de token
171171 try {
172- $ token = Helix \Authentication \JWTHelper::encode (['user_id ' => 1 ], 'test_secret ' );
172+ $ token = PivotPHP \ Core \Authentication \JWTHelper::encode (['user_id ' => 1 ], 'test_secret ' );
173173 if ($ token ) {
174174 $ this ->passed [] = "JWTHelper pode gerar tokens " ;
175175 } else {
@@ -323,9 +323,9 @@ private function validateAuthentication()
323323 $ _SERVER ['REQUEST_URI ' ] = '/api/test ' ;
324324
325325 // Validação básica de autenticação sem instanciar classes específicas
326- if (class_exists ('Helix \\Authentication \\JWTHelper ' )) {
326+ if (class_exists ('PivotPHP \\ Core \\Authentication \\JWTHelper ' )) {
327327 // Testar JWT Helper básico
328- $ jwt = Helix \Authentication \JWTHelper::encode (['test ' => true ], 'secret ' );
328+ $ jwt = PivotPHP \ Core \Authentication \JWTHelper::encode (['test ' => true ], 'secret ' );
329329 if ($ jwt ) {
330330 $ this ->passed [] = "Sistema de autenticação funcional " ;
331331 } else {
@@ -396,13 +396,13 @@ private function validateOpenApiFeatures()
396396 echo "📚 Validando recursos OpenAPI/Swagger... \n" ;
397397
398398 // Verificar se OpenApiExporter existe
399- if (class_exists ('Helix \\Utils \\OpenApiExporter ' )) {
399+ if (class_exists ('PivotPHP \\ Core \\Utils \\OpenApiExporter ' )) {
400400 $ this ->passed [] = "OpenApiExporter carregado " ;
401401
402402 // Testar export básico
403403 try {
404- if (class_exists ('Helix \\Routing \\Router ' )) {
405- $ docs = Helix \ Utils \OpenApiExporter::export ('Helix \\Routing \\Router ' );
404+ if (class_exists ('PivotPHP \\ Core \\Routing \\Router ' )) {
405+ $ docs = PivotPHP \ Core \ Utils \OpenApiExporter::export ('PivotPHP \\ Core \\Routing \\Router ' );
406406 if (is_array ($ docs ) && isset ($ docs ['openapi ' ])) {
407407 $ this ->passed [] = "OpenApiExporter pode gerar documentação " ;
408408
0 commit comments