mirror of
https://github.com/php/phd.git
synced 2026-03-23 22:52:05 +01:00
- Move error handling code into a class and remove PhD message output handling from it. - Introduce a new class to handle PhD message output. - Make the implicit dependency on the output functionality of classes explicit. - Update PEAR package.xml. - Fix tests. - Use proper variadic parameters - Use class constants - Use first-class callable syntax --------- Co-authored-by: haszi <haszika80@gmail.com>
25 lines
478 B
PHP
25 lines
478 B
PHP
--TEST--
|
|
Default options handler 005 - Show version - short option
|
|
--ARGS--
|
|
-V
|
|
--SKIPIF--
|
|
<?php
|
|
if (file_exists(__DIR__ . "/../../phd.config.php")) {
|
|
die("Skipped: existing phd.config.php file will overwrite command line options.");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
namespace phpdotnet\phd;
|
|
|
|
require_once __DIR__ . "/../../render.php";
|
|
?>
|
|
--EXPECTF--
|
|
%sPhD Version: %s
|
|
%s Generic: %s
|
|
%s IDE: %s
|
|
%s PEAR: %s
|
|
%s PHP: %s
|
|
%sPHP Version: %s
|
|
%sCopyright(c) %d-%d The PHP Documentation Group%s
|