expectException(TransportException::class); $client->get('file:///etc/passwd'); } public function testRejectsHeaderInjectionAttempt(): void { $client = new CurlHttpClient(); $this->expectException(TransportException::class); $client->get('https://example.com', [ 'X-Test' => "ok\r\nInjected: yes", ]); } }