mirror of
https://github.com/php/phd.git
synced 2026-04-29 09:53:23 +02:00
15284136ff
- 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
484 B
PHP
25 lines
484 B
PHP
--TEST--
|
|
Default options handler 006 - Show version - long option
|
|
--ARGS--
|
|
--version
|
|
--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
|