xref: /PHP-7.3/sapi/cli/tests/019.phpt (revision 782352c5)
1--TEST--
2CLI php -i
3--SKIPIF--
4<?php
5include "skipif.inc";
6if (substr(PHP_OS, 0, 3) == 'WIN') {
7	die ("skip not for Windows");
8}
9?>
10--FILE--
11<?php
12
13$php = getenv('TEST_PHP_EXECUTABLE');
14
15
16echo `"$php" -n -i`;
17
18echo "\nDone\n";
19?>
20--EXPECTF--
21phpinfo()
22PHP Version => %s
23%a
24PHP License
25This program is free software; you can redistribute it and/or modify
26it under the terms of the PHP License as published by the PHP Group
27and included in the distribution in the file:  LICENSE
28
29This program is distributed in the hope that it will be useful,
30but WITHOUT ANY WARRANTY; without even the implied warranty of
31MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
32
33If you did not receive a copy of the PHP license, or have any
34questions about PHP licensing, please contact license@php.net.
35
36Done
37