From cd000b4b486afc9c38439c1c7f9f62b0493cfa1d Mon Sep 17 00:00:00 2001 From: Julian Date: Mon, 15 Jan 2024 14:09:54 +0100 Subject: [PATCH] Add IN and NOT IN operators to TestTableEntry --- src/Driver/Test/TestTableEntry.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Driver/Test/TestTableEntry.php b/src/Driver/Test/TestTableEntry.php index 16370b7..e43b604 100644 --- a/src/Driver/Test/TestTableEntry.php +++ b/src/Driver/Test/TestTableEntry.php @@ -73,6 +73,8 @@ public function matchesWhereCondition(WhereCondition $where): bool "<=" => $dataValue <= $whereValue, "like" => $this->matchesLike($whereValue, $dataValue), "not like" => !$this->matchesLike($whereValue, $dataValue), + "in" => in_array($dataValue, $whereValue, true), + "not in" => !in_array($dataValue, $whereValue, true), default => false, }; }