1--TEST--
2cli_get_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") && cli_get_process_title() === "title")
16  echo "Title correctly retrieved!\n";
17
18?>
19--EXPECT--
20Title correctly retrieved!
21