File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11<?php
2+ // Prevent direct access unless testing.
3+ getenv ('PHP_CURL_CLASS_TEST_MODE_ENABLED ' ) === 'yes ' || exit;
24
35require_once 'ContentRangeServer.php ' ;
46require_once 'RangeHeader.php ' ;
Original file line number Diff line number Diff line change 4040 fastcgi_pass=" 127.0.0.1:9000"
4141fi
4242
43+ # Let test server know we should allow testing.
44+ export PHP_CURL_CLASS_TEST_MODE_ENABLED=" yes"
45+
4346if [[ " ${TRAVIS_PHP_VERSION} " == " 5.3" ]]; then
4447 if ! [ -x " $( command -v add-apt-repository) " ]; then
4548 $superuser apt-get install -y python-software-properties
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ cd "${SCRIPT_DIR}"
33
44set -x
55
6+ # Let test server know we should allow testing.
7+ export PHP_CURL_CLASS_TEST_MODE_ENABLED=" yes"
8+
69php -S 127.0.0.1:8000 -t PHPCurlClass/ & > /dev/null &
710pid=" ${! } "
811extra_args=" ${@ } "
You can’t perform that action at this time.
0 commit comments