Skip to content

Commit

Permalink
Merge pull request #8 from JulianVennen/test-driver-in
Browse files Browse the repository at this point in the history
Add IN and NOT IN operators to TestTableEntry
  • Loading branch information
matthi4s authored Jan 15, 2024
2 parents 97adb4e + cd000b4 commit 283f572
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Driver/Test/TestTableEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}
Expand Down

0 comments on commit 283f572

Please sign in to comment.