Skip to content

Commit 9e9b393

Browse files
ademarcolstrojny
authored andcommitted
Follow up of: Provide an absolute path to the router for the PHP CLI server to fix "No such file or directory" error (#41)
* Provide an absolute path to the router for the PHP CLI server to fix #39 * Issue #40: Fix tests and code sniffer. * Issue #40: Add PHP 7.2 to pipeline.
1 parent 62675e2 commit 9e9b393

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ language: php
33
php:
44
- 7.0
55
- 7.1
6+
- 7.2
67
- nightly
78
- hhvm
89

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"lstrojny/hmmmath": ">=0.5.0"
2222
},
2323
"require-dev": {
24-
"internations/kodierungsregelwerksammlung": "dev-master",
25-
"internations/testing-component": "dev-master",
26-
"phpunit/phpunit": ">=6"
24+
"internations/kodierungsregelwerksammlung": "0.24.1",
25+
"internations/testing-component": "1.0.1",
26+
"phpunit/phpunit": "6.0"
2727
},
2828
"autoload": {
2929
"psr-4": {"InterNations\\Component\\HttpMock\\": "src/"}

src/Server.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ public function __construct($port, $host)
2020
{
2121
$this->port = $port;
2222
$this->host = $host;
23+
$packageRoot = __DIR__ . '/../';
2324
parent::__construct(
2425
sprintf(
25-
'exec php -dalways_populate_raw_post_data=-1 -derror_log= -S %s -t public/ public/index.php',
26-
$this->getConnectionString()
26+
'exec php -dalways_populate_raw_post_data=-1 -derror_log= -S %s -t public/ %spublic/index.php',
27+
$this->getConnectionString(),
28+
$packageRoot
2729
),
28-
__DIR__ . '/../'
30+
$packageRoot
2931
);
3032
$this->setTimeout(null);
3133
}

0 commit comments

Comments
 (0)