Skip to content

Commit 80205fa

Browse files
authored
Add non-symlink case to bin/http_test_server (#49)
see #46
1 parent 49d98e0 commit 80205fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/http_test_server

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ 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
11+
# Installed as a dependency, but not accessed using the symlink (e.g. Windows)
12+
elif [ -f "$DIR/../composer.json" -a -f "$DIR/../fixture/server.php" ] && grep -q php-http/client-integration-tests "$DIR/../composer.json"; then
13+
php -S 127.0.0.1:10000 -t "$DIR/../fixture"
14+
# Not working
1215
else
1316
echo "*** Can't find the fixture folder ***" >&2
1417
echo "Please write your own way to start a PHP web server on port 10000 for the 'fixture' directory." >&2

0 commit comments

Comments
 (0)