mirror of
https://github.com/php/php-src.git
synced 2026-03-29 19:52:20 +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
23 lines
518 B
PHP
23 lines
518 B
PHP
--TEST--
|
|
Test curl_getinfo() function with CURLINFO_CONTENT_TYPE 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=contenttype";
|
|
|
|
$ch = curl_init();
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
curl_exec($ch);
|
|
var_dump(curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
|
|
curl_close($ch);
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
string(24) "text/plain;charset=utf-8"
|
|
===DONE===
|