Skip to content

Commit 58e221f

Browse files
committed
Test empty arrays as result
References #175
1 parent ba175cd commit 58e221f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Integration/ComplexQueryTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,4 +338,9 @@ public function testLongQueryUnmanagedNegative(): void
338338
self::assertEquals('Neo.ClientError.Transaction.TransactionTimedOut', $e->getNeo4jCode());
339339
}
340340
}
341+
342+
public function testReturnNoResults(): void
343+
{
344+
self::assertEquals([], $this->getSession()->run('UNWIND [] AS x RETURN x')->toRecursiveArray());
345+
}
341346
}

0 commit comments

Comments
 (0)