From a0ff7cd3c5567bf183d3741056d8efee35f562f8 Mon Sep 17 00:00:00 2001 From: Martin Georgiev Date: Sat, 6 Sep 2025 15:09:28 +0300 Subject: [PATCH] chore: use correct grammar and provide extra context for a failed assertion --- .../Doctrine/ORM/Query/AST/Functions/Ltree/LcaTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Ltree/LcaTest.php b/tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Ltree/LcaTest.php index b7042c2f..bcab050e 100644 --- a/tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Ltree/LcaTest.php +++ b/tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Ltree/LcaTest.php @@ -33,11 +33,11 @@ public function can_compute_longest_common_ancestor_of_three_paths(): void } #[Test] - public function can_compute_longest_common_ancestor_to_be_empty_string_when_one_of_the_paths_has_only_a_root_with_no_leafs(): void + public function can_compute_longest_common_ancestor_to_be_empty_string_when_one_of_the_paths_has_only_a_root_with_no_leaves(): void { $dql = 'SELECT LCA(l.ltree1, l.ltree2) as result FROM Fixtures\\MartinGeorgiev\\Doctrine\\Entity\\ContainsLtrees l WHERE l.id = 3'; $result = $this->executeDqlQuery($dql); - $this->assertSame('', $result[0]['result']); + $this->assertSame('', $result[0]['result'], 'ltree LCA returns the parent of the shorter path; for a root-only path, the parent is always an empty string'); } #[Test]