Make unit tests working

This commit is contained in:
Eric Espie
2025-10-02 09:48:22 +02:00
parent 0ea0da525e
commit 39fd879ca9
83 changed files with 1924 additions and 262 deletions

View File

@@ -86,7 +86,7 @@ class PropertyPathBuilder
public function remove(int $offset, int $length = 1)
{
if (!isset($this->elements[$offset])) {
throw new OutOfBoundsException(sprintf('The offset "%s" is not within the property path.', $offset));
throw new OutOfBoundsException(\sprintf('The offset "%s" is not within the property path.', $offset));
}
$this->resize($offset, $length, 0);
@@ -137,7 +137,7 @@ class PropertyPathBuilder
public function replaceByIndex(int $offset, ?string $name = null)
{
if (!isset($this->elements[$offset])) {
throw new OutOfBoundsException(sprintf('The offset "%s" is not within the property path.', $offset));
throw new OutOfBoundsException(\sprintf('The offset "%s" is not within the property path.', $offset));
}
if (null !== $name) {
@@ -157,7 +157,7 @@ class PropertyPathBuilder
public function replaceByProperty(int $offset, ?string $name = null)
{
if (!isset($this->elements[$offset])) {
throw new OutOfBoundsException(sprintf('The offset "%s" is not within the property path.', $offset));
throw new OutOfBoundsException(\sprintf('The offset "%s" is not within the property path.', $offset));
}
if (null !== $name) {