From 86c4ccb66989e75674c0c50aac6db8627d850596 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Fri, 17 Jun 2022 14:21:45 +0200 Subject: [PATCH] fixed tests --- .../expected/Extractor.bodies.expect | 16 ++++++++-------- .../PhpGenerator/expected/Extractor.enum.expect | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/PhpGenerator/expected/Extractor.bodies.expect b/tests/PhpGenerator/expected/Extractor.bodies.expect index aaa0a3ff..21d22313 100644 --- a/tests/PhpGenerator/expected/Extractor.bodies.expect +++ b/tests/PhpGenerator/expected/Extractor.bodies.expect @@ -10,32 +10,32 @@ use const BAR; abstract class Class7 { - abstract public function abstractFun(); + abstract function abstractFun(); - public function emptyFun() + function emptyFun() { } - public function emptyFun2() + function emptyFun2() { } - public function simple() + function simple() { return 1; } - public function simple2() + function simple2() { return 1; } - public function long() + function long() { if ($member instanceof Method) { $s = [1, 2, 3]; @@ -47,7 +47,7 @@ abstract class Class7 } - public function resolving($a = a\FOO, self $b = null, $c = self::FOO) + function resolving($a = a\FOO, self $b = null, $c = self::FOO) { echo FOO; echo \FOO; @@ -67,7 +67,7 @@ abstract class Class7 } - public function complex() + function complex() { echo 1; // single line comment diff --git a/tests/PhpGenerator/expected/Extractor.enum.expect b/tests/PhpGenerator/expected/Extractor.enum.expect index 53c7bf69..c4fee069 100644 --- a/tests/PhpGenerator/expected/Extractor.enum.expect +++ b/tests/PhpGenerator/expected/Extractor.enum.expect @@ -18,8 +18,8 @@ enum Enum1 case Hearts; case Spades; - public const FOO = 123; - public const BAR = self::Clubs; + const FOO = 123; + const BAR = self::Clubs; public function foo($x = self::Diamonds) {