mirror of
https://github.com/php/php-src.git
synced 2026-03-31 04:32:19 +02:00
Current run-tests.php script produces the `*.php` files from the *.phpt. So all *.php files in tests folders are ignored by Git. To avoid confusion and to for bettere consistency this patch renames two remaining tests/*/*.php files to *.inc and *.phar as current practice in *.phpt files. - The `ext/curl/tests/resonder/get.php` to .inc extension - The `ext/phar/tests/files/pear2coverage.phar.php` to .phar extension
24 lines
497 B
PHP
24 lines
497 B
PHP
--TEST--
|
|
Test curl_getinfo() function with CURLINFO_HTTP_CODE parameter
|
|
--CREDITS--
|
|
Jean-Marc Fontaine <jmf@durcommefaire.net>
|
|
--SKIPIF--
|
|
<?php include 'skipif.inc'; ?>
|
|
--FILE--
|
|
<?php
|
|
include 'server.inc';
|
|
$host = curl_cli_server_start();
|
|
|
|
$url = "{$host}/get.inc?test=";
|
|
$ch = curl_init();
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
curl_exec($ch);
|
|
var_dump(curl_getinfo($ch, CURLINFO_HTTP_CODE));
|
|
curl_close($ch);
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
Hello World!
|
|
Hello World!int(200)
|
|
===DONE===
|