We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49d98e0 commit 80205faCopy full SHA for 80205fa
bin/http_test_server
@@ -8,7 +8,10 @@ if [ -f "$DIR/../autoload.php" ]; then
8
# Development
9
elif [ -f "$DIR/../vendor/autoload.php" ]; then
10
php -S 127.0.0.1:10000 -t "$DIR/../fixture"
11
-# Not working, e.g. windows which does not do symlinks
+# 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
15
else
16
echo "*** Can't find the fixture folder ***" >&2
17
echo "Please write your own way to start a PHP web server on port 10000 for the 'fixture' directory." >&2
0 commit comments