1--TEST--
2cli_set_process_title() function : basic functionality
3--CREDITS--
4Patrick Allaert patrickallaert@php.net
5@nephp #nephp17
6--SKIPIF--
7<?php
8if (PHP_SAPI !== "cli")
9  die("skip cli process title not available in non-cli SAPI");
10if (!PHP_CLI_PROCESS_TITLE)
11  die("skip process title not available (disabled or unsupported)");
12?>
13--FILE--
14<?php
15if (cli_set_process_title("title") === true &&
16    cli_get_process_title() === "title")
17  echo "Successfully set title\n";
18
19?>
20--EXPECT--
21Successfully set title
22