From ede1515e2070aa0034171504a36daef4df45f9b7 Mon Sep 17 00:00:00 2001 From: "Kouhei.Sano" Date: Sun, 19 May 2024 14:07:51 +0900 Subject: [PATCH] test: --- tests/AopCodeTest.php | 4 +++- tests/Fake/Annotation/FakeMarker6.php | 22 ++++++++++++++++++++++ tests/Fake/FakePhp8Types.php | 4 ++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 tests/Fake/Annotation/FakeMarker6.php diff --git a/tests/AopCodeTest.php b/tests/AopCodeTest.php index 6351b115..678b2424 100644 --- a/tests/AopCodeTest.php +++ b/tests/AopCodeTest.php @@ -49,7 +49,7 @@ public function testReturnType(): void public function testVariousMethodSignature(): void { $bind = new Bind(); - for ($i = 1; $i <= 23; $i++) { + for ($i = 1; $i <= 24; $i++) { $bind->bindInterceptors('method' . (string) $i, []); } @@ -89,6 +89,8 @@ public function method21()', $code); public function method22()', $code); $this->assertStringContainsString('#[\\Ray\\Aop\\Annotation\\FakeMarker5(\\Ray\\Aop\\FakePhp81Enum::Apple)] public function method23()', $code); + $this->assertStringContainsString('#[\\Ray\\Aop\\Annotation\\FakeMarker6(fruit1: \\Ray\\Aop\\FakePhp81Enum::Apple, fruit2: \\Ray\\Aop\\FakePhp81Enum::Orange)] + public function method24()', $code); } /** @requires PHP 8.2 */ diff --git a/tests/Fake/Annotation/FakeMarker6.php b/tests/Fake/Annotation/FakeMarker6.php new file mode 100644 index 00000000..0adb2e77 --- /dev/null +++ b/tests/Fake/Annotation/FakeMarker6.php @@ -0,0 +1,22 @@ +