Files
Php-Template/tests/Controllers/AbstractController.php
Ron Rise 54c656551e
Some checks failed
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Has started running
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Has been cancelled
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Has been cancelled
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Has been cancelled
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Has been cancelled
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Has been cancelled
feat: add abstract classes for controllers, facades, and service providers with unit tests
2025-10-15 19:44:57 -04:00

17 lines
343 B
PHP

<?php
declare(strict_types=1);
namespace Siteworxpro\Tests\Controllers;
use Nyholm\Psr7\ServerRequest;
use Siteworxpro\Tests\Unit;
abstract class AbstractController extends Unit
{
protected function getMockRequest(string $method = 'GET', string $uri = '/'): ServerRequest
{
return new ServerRequest($method, $uri);
}
}