Skip to content

Commit 1b9aea6

Browse files
chore: use correct grammar and provide extra context for a failed assertion (#441)
1 parent 745b269 commit 1b9aea6

File tree

1 file changed

+2
-2
lines changed
  • tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Ltree

1 file changed

+2
-2
lines changed

tests/Integration/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Ltree/LcaTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ public function can_compute_longest_common_ancestor_of_three_paths(): void
3333
}
3434

3535
#[Test]
36-
public function can_compute_longest_common_ancestor_to_be_empty_string_when_one_of_the_paths_has_only_a_root_with_no_leafs(): void
36+
public function can_compute_longest_common_ancestor_to_be_empty_string_when_one_of_the_paths_has_only_a_root_with_no_leaves(): void
3737
{
3838
$dql = 'SELECT LCA(l.ltree1, l.ltree2) as result FROM Fixtures\\MartinGeorgiev\\Doctrine\\Entity\\ContainsLtrees l WHERE l.id = 3';
3939
$result = $this->executeDqlQuery($dql);
40-
$this->assertSame('', $result[0]['result']);
40+
$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');
4141
}
4242

4343
#[Test]

0 commit comments

Comments
 (0)