container = new Container(); $this->bootstrap = new Bootstrap(); } protected function tearDown(): void { parent::tearDown(); // Clean up $this->container = null; $this->bootstrap = null; } /** * Create a test request */ protected function createRequest(array $data = [], string $method = 'GET'): void { $_SERVER['REQUEST_METHOD'] = $method; $_GET = $data; $_POST = $method === 'POST' ? $data : []; $_REQUEST = array_merge($_GET, $_POST); } /** * Assert that response contains text */ protected function assertResponseContains(string $content, string $text): void { $this->assertStringContainsString($text, $content); } /** * Assert that response is JSON */ protected function assertJsonResponse(string $content): void { $this->assertJson($content); } }