From 2a91bd66162df453e63cbcc687320f6c94131619 Mon Sep 17 00:00:00 2001 From: Aleksandr Zhuravlev Date: Mon, 11 Mar 2024 20:09:05 +1000 Subject: [PATCH] Added test for #10807 --- tests/AssertAnnotationTest.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tests/AssertAnnotationTest.php b/tests/AssertAnnotationTest.php index 972e2e3d72f..5263a5267a0 100644 --- a/tests/AssertAnnotationTest.php +++ b/tests/AssertAnnotationTest.php @@ -90,6 +90,36 @@ function requiresString(string $_str): void {} $this->analyzeFile('somefile.php', new Context()); } + public function testAssertsAllongCallStaticMethodWork(): void + { + $this->addFile( + 'somefile.php', + 'analyzeFile('somefile.php', new Context()); + } + public function testAssertInvalidDocblockMessageDoesNotIncludeTrace(): void { $this->expectException(CodeException::class);