Skip to content

Commit 67df35f

Browse files
committed
Adds test server script
1 parent 15efa77 commit 67df35f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bin/http_test_server

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
4+
5+
# Installed as a dependency
6+
if [ -f "$DIR/../autoload.php" ]; then
7+
php -S 127.0.0.1:10000 -t "$DIR/../php-http/adapter-integration-tests/fixture"
8+
# Development
9+
elif [ -f "$DIR/../vendor/autoload.php" ]; then
10+
php -S 127.0.0.1:10000 -t "$DIR/../fixture"
11+
fi

0 commit comments

Comments
 (0)