Viewing File: /opt/alt/tests/alt-php83-pecl-http_4.2.6-4.el8/tests/clientrequest002.phpt

--TEST--
client request content type
--SKIPIF--
<?php
include "skipif.inc";
?>
--FILE--
<?php

echo "Test\n";

$r = new http\Client\Request("POST", "http://localhost/");
var_dump($r === $r->setContentType($ct = "text/plain; charset=utf-8"));
var_dump($ct === $r->getContentType());

?>
Done
--EXPECT--
Test
bool(true)
bool(true)
Done
Back to Directory File Manager
<