Skip to content

Commit

Permalink
Add IN and NOT IN operators to TestTableEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Jan 15, 2024
1 parent 97adb4e commit cd000b4
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 cd000b4

Please sign in to comment.