We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4457352 commit 57c060bCopy full SHA for 57c060b
tests/Igorw/CgiHttpKernel/CgiHttpKernelTest.php
@@ -157,4 +157,13 @@ public function isShouldParseMultipleCookiesFromResponse()
157
$this->assertSame('qux', $cookies[1]->getName());
158
$this->assertSame('quux', $cookies[1]->getValue());
159
}
160
+
161
+ /** @test */
162
+ public function itShouldSetHttpAuth()
163
+ {
164
+ $request = Request::create('http://igorw:secret@localhost/auth.php');
165
+ $response = $this->kernel->handle($request);
166
167
+ $this->assertSame('igorw:secret', $response->getContent());
168
+ }
169
tests/Igorw/CgiHttpKernel/Fixtures/auth.php
@@ -0,0 +1,3 @@
1
+<?php
2
3
+echo $_SERVER['PHP_AUTH_USER'].':'.$_SERVER['PHP_AUTH_PW'];
0 commit comments