[Tests] Remove tests/debug_functions.php (#1546)

This commit is contained in:
Abdul Malik Ikhsan 2021-12-22 21:35:50 +07:00 committed by GitHub
parent 3f80cd0543
commit d1e885a03a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 27 deletions

View File

@ -52,7 +52,6 @@ parameters:
- bin/generate-changelog.php
- */config.php
- tests/debug_functions.php
# broken in PHPStan https://github.com/rectorphp/rector/runs/1305002460#step:5:56
- packages/BetterPhpDocParser/ValueObject/PhpDocNode/AbstractTagValueNode.php

View File

@ -1,26 +0,0 @@
<?php
declare(strict_types=1);
use PhpParser\Node;
use PhpParser\PrettyPrinter\Standard;
require __DIR__ . '/../vendor/autoload.php';
/**
* @param Node|Node[] $node
*/
function print_node(Node | array $node): void
{
$standard = new Standard();
if (is_array($node)) {
foreach ($node as $singleNode) {
$printedContent = $standard->prettyPrint([$singleNode]);
dump($printedContent);
}
} else {
$printedContent = $standard->prettyPrint([$node]);
dump($printedContent);
}
}