From f59cad20affb179036ef4fce7bec18e302ed7004 Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Thu, 28 Mar 2024 21:53:28 +0100 Subject: [PATCH] Fix without_namespace() test --- src/test/php/lang/ast/unittest/emit/NamespacesTest.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/php/lang/ast/unittest/emit/NamespacesTest.class.php b/src/test/php/lang/ast/unittest/emit/NamespacesTest.class.php index 7fe7dcc7..a4dc258f 100755 --- a/src/test/php/lang/ast/unittest/emit/NamespacesTest.class.php +++ b/src/test/php/lang/ast/unittest/emit/NamespacesTest.class.php @@ -7,7 +7,7 @@ class NamespacesTest extends EmittingTest { #[Test] public function without_namespace() { - Assert::null($this->declare('class %T { }')->package()); + Assert::false(strpos($this->declare('class %T { }')->name(), '.')); } #[Test]