From d589d9d05a709d82df903d9a05c062b6d9fdc149 Mon Sep 17 00:00:00 2001 From: odain Date: Tue, 16 Sep 2025 16:37:31 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04789=20-=20fix=20broken=20tests=20in=20c?= =?UTF-8?q?i?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/PhpParser/Evaluation/PhpExpressionEvaluator.php | 7 +++---- .../PhpParser/Evaluation/PhpExpressionEvaluatorTest.php | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sources/PhpParser/Evaluation/PhpExpressionEvaluator.php b/sources/PhpParser/Evaluation/PhpExpressionEvaluator.php index 80eb6c4db..1fde0e5d3 100644 --- a/sources/PhpParser/Evaluation/PhpExpressionEvaluator.php +++ b/sources/PhpParser/Evaluation/PhpExpressionEvaluator.php @@ -2,12 +2,11 @@ namespace Combodo\iTop\PhpParser\Evaluation; -use ModuleFileParser; -use ModuleFileReaderException; +use \Combodo\iTop\Setup\ModuleDiscovery\ModuleFileParser; +use \Combodo\iTop\Setup\ModuleDiscovery\ModuleFileReaderException; use PhpParser\ConstExprEvaluator; use PhpParser\Node\Expr; use PhpParser\ParserFactory; - /** * Used at runtime/setup time */ @@ -31,7 +30,7 @@ class PhpExpressionEvaluator { * @param string $sBooleanExpr * * @return bool - * @throws \ModuleFileReaderException + * @throws ModuleFileReaderException */ public function ParseAndEvaluateBooleanExpression(string $sBooleanExpr) : bool { diff --git a/tests/php-unit-tests/unitary-tests/sources/PhpParser/Evaluation/PhpExpressionEvaluatorTest.php b/tests/php-unit-tests/unitary-tests/sources/PhpParser/Evaluation/PhpExpressionEvaluatorTest.php index 214f58feb..46ebaf526 100644 --- a/tests/php-unit-tests/unitary-tests/sources/PhpParser/Evaluation/PhpExpressionEvaluatorTest.php +++ b/tests/php-unit-tests/unitary-tests/sources/PhpParser/Evaluation/PhpExpressionEvaluatorTest.php @@ -3,8 +3,9 @@ namespace Combodo\iTop\Test\UnitTest\Sources\PhpParser\Evaluation; use Combodo\iTop\PhpParser\Evaluation\PhpExpressionEvaluator; +use Combodo\iTop\Setup\ModuleDiscovery\ModuleFileReader; +use Combodo\iTop\Setup\ModuleDiscovery\ModuleFileReaderException; use Combodo\iTop\Test\UnitTest\ItopDataTestCase; -use ModuleFileReader; class PhpExpressionEvaluatorTest extends ItopDataTestCase { public static $STATIC_PROPERTY = 123;