@@ -144,35 +144,4 @@ public function testAddQueryPartWithAlias(): void
144144
145145 $ this ->assertEquals ('db_table_alias.DB_FIELD = :db_field_eq ' , (string )$ where );
146146 }
147-
148- /** @dataProvider matchesDataProvider */
149- public function testMatches (
150- string $ stringForTrueCase ,
151- string $ stringForFalseCase ,
152- StringFilter $ initFilter
153- ): void {
154- $ this ->assertTrue ($ initFilter ->matches ($ stringForTrueCase ));
155- $ this ->assertFalse ($ initFilter ->matches ($ stringForFalseCase ));
156- }
157-
158- public static function matchesDataProvider (): \Generator
159- {
160- yield "test match equals " => [
161- 'stringForTrueCase ' => 'test theme 1 ' ,
162- 'stringForFalseCase ' => 'test theme 22 ' ,
163- 'initFilter ' => new StringFilter (equals: 'test theme 1 ' )
164- ];
165-
166- yield "test match contains " => [
167- 'stringForTrueCase ' => 'test abc theme ' ,
168- 'stringForFalseCase ' => 'test xyz theme ' ,
169- 'initFilter ' => new StringFilter (contains: 'abc ' )
170- ];
171-
172- yield "test match begins with " => [
173- 'stringForTrueCase ' => 'this start ' ,
174- 'stringForFalseCase ' => 'this deos not start with ' ,
175- 'initFilter ' => new StringFilter (beginsWith: 'this start ' )
176- ];
177- }
178147}
0 commit comments