1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-12 17:37:21 +01:00
PHP-Parser/test/code/prettyPrinter/stmt/function_signatures.test
Nikita Popov e4b837e0c4 Split up pretty printer test in stmt/expr
The list was getting unweildly.

Also improve error message when parsing fails in pretty printer
test and extend some tests.
2015-10-02 11:16:12 +02:00

44 lines
899 B
Plaintext

Function signatures
-----
<?php
interface A
{
function f1();
function f2($a, $b);
function f3(&$a);
function f4(A\B $a);
function f4(array $a);
function f5(callable $a);
function f6(&$a);
function f7(...$a);
function f8(&...$a);
function f9(A &$a);
function f10(A ...$a);
function f11(A &$a);
function f12(A &...$a);
function f13($a) : array;
function f14($a) : callable;
function f15($a) : B\C;
}
-----
interface A
{
function f1();
function f2($a, $b);
function f3(&$a);
function f4(A\B $a);
function f4(array $a);
function f5(callable $a);
function f6(&$a);
function f7(...$a);
function f8(&...$a);
function f9(A &$a);
function f10(A ...$a);
function f11(A &$a);
function f12(A &...$a);
function f13($a) : array;
function f14($a) : callable;
function f15($a) : B\C;
}