Skip to content

Commit 5d37d37

Browse files
committed
Update Host header tests requiring root access
1 parent 9c4815c commit 5d37d37

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
66
bootstrap="vendor/autoload.php"
7-
colors="true"
87
cacheResult="false"
8+
colors="true"
99
convertDeprecationsToExceptions="true">
1010
<testsuites>
1111
<testsuite name="React Test Suite">

tests/FunctionalHttpServerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public function testSecureHttpsOnStandardPortReturnsUriWithNoPort()
302302

303303
$loop = Factory::create();
304304
try {
305-
$socket = new SocketServer('127.0.0.1:443', array('tls' => array(
305+
$socket = new SocketServer('tls://127.0.0.1:443', array('tls' => array(
306306
'local_cert' => __DIR__ . '/../examples/localhost.pem'
307307
)), $loop);
308308
} catch (\RuntimeException $e) {
@@ -341,7 +341,7 @@ public function testSecureHttpsOnStandardPortWithoutHostHeaderUsesSocketUri()
341341

342342
$loop = Factory::create();
343343
try {
344-
$socket = new SocketServer('127.0.0.1:443', array('tls' => array(
344+
$socket = new SocketServer('tls://127.0.0.1:443', array('tls' => array(
345345
'local_cert' => __DIR__ . '/../examples/localhost.pem'
346346
)), $loop);
347347
} catch (\RuntimeException $e) {
@@ -410,7 +410,7 @@ public function testSecureHttpsOnHttpStandardPortReturnsUriWithPort()
410410

411411
$loop = Factory::create();
412412
try {
413-
$socket = new SocketServer('127.0.0.1:80', array('tls' => array(
413+
$socket = new SocketServer('tls://127.0.0.1:80', array('tls' => array(
414414
'local_cert' => __DIR__ . '/../examples/localhost.pem'
415415
)), $loop);
416416
} catch (\RuntimeException $e) {

0 commit comments

Comments
 (0)