php-src/sapi/cli/tests/php_cli_server_001.phpt

17 lines
266 B
Plaintext
Raw Normal View History

2011-09-20 07:10:46 +00:00
--TEST--
basic function
--INI--
2011-09-20 08:13:55 +00:00
allow_url_fopen=1
2011-09-20 07:10:46 +00:00
--SKIPIF--
<?php
include "skipif.inc";
?>
--FILE--
<?php
include "php_cli_server.inc";
php_cli_server_start();
2011-09-20 07:10:46 +00:00
var_dump(file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS));
?>
--EXPECT--
2011-09-20 07:10:46 +00:00
string(11) "Hello world"