Skip to content

Commit 4daae3f

Browse files
authored
Merge pull request #47 from php-http/explicit-error
output error message if we can't start a php server
2 parents 4ce2c74 + 9a26b40 commit 4daae3f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/http_test_server

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ if [ -f "$DIR/../autoload.php" ]; then
88
# Development
99
elif [ -f "$DIR/../vendor/autoload.php" ]; then
1010
php -S 127.0.0.1:10000 -t "$DIR/../fixture"
11+
# Not working, e.g. windows which does not do symlinks
12+
else
13+
echo "*** Can't find the fixture folder ***" >&2
14+
echo "Please write your own way to start a PHP web server on port 10000 for the 'fixture' directory." >&2
15+
exit 1
1116
fi

0 commit comments

Comments
 (0)