xref: /PHP-8.0/sapi/cli/tests/bug69953.phpt (revision 2d4ad66f)
1--TEST--
2FR #69953 (Support MKCALENDAR request method)
3--INI--
4allow_url_fopen=1
5--SKIPIF--
6<?php
7include "skipif.inc";
8?>
9--FILE--
10<?php
11include "php_cli_server.inc";
12php_cli_server_start('echo $_SERVER["REQUEST_METHOD"];');
13$context = stream_context_create(['http' => ['method' => 'MKCALENDAR']]);
14var_dump(file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS, false, $context));
15?>
16--EXPECT--
17string(10) "MKCALENDAR"
18