We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6545d59 commit 5fbac53Copy full SHA for 5fbac53
1 file changed
tests/Unit/DataType/Filter/StringFilterTest.php
@@ -174,5 +174,17 @@ public static function matchesDataProvider(): \Generator
174
'stringForFalseCase' => 'this does not start with',
175
'initFilter' => new StringFilter(beginsWith: 'this start')
176
];
177
+
178
+ yield "test match begins with and contains" => [
179
+ 'stringForTrueCase' => 'this start with abc',
180
+ 'stringForFalseCase' => 'this does not start with abc',
181
+ 'initFilter' => new StringFilter(beginsWith: 'this start', contains: 'abc')
182
+ ];
183
184
+ yield "test match equals and contains" => [
185
+ 'stringForTrueCase' => 'this is abc',
186
+ 'stringForFalseCase' => 'this is not abc',
187
+ 'initFilter' => new StringFilter(equals: 'this is abc', contains: 'abc')
188
189
}
190
0 commit comments