Skip to content

Commit f22c2c1

Browse files
authored
Make CI green (#4)
* Make sure we can run the tests * CS fixes * Bugfix * Normalize composer
1 parent bcd0bcd commit f22c2c1

File tree

4 files changed

+19
-31
lines changed

4 files changed

+19
-31
lines changed

phpunit.xml.dist

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4+
backupGlobals="false"
5+
colors="true"
6+
bootstrap="vendor/autoload.php"
7+
failOnRisky="true"
8+
failOnWarning="true"
9+
>
10+
<php>
11+
<ini name="error_reporting" value="-1"/>
12+
</php>
13+
<testsuites>
14+
<testsuite name="Test Suite">
15+
<directory>./tests</directory>
16+
</testsuite>
17+
</testsuites>
18+
</phpunit>

src/Runtime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Runtime extends GenericRuntime
1717

1818
public function __construct(array $options)
1919
{
20-
$this->port = $options['port'];
20+
$this->port = $options['port'] ?? 8080;
2121
parent::__construct($options);
2222
}
2323

tests/phpt/psr15.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

tests/phpt/psr15.phpt

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)