| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function testInvoke() : void |
||
| 12 | { |
||
| 13 | $filterA = new RegexSchemaAssetFilter('~^(?!t_)~'); |
||
| 14 | $filterB = new RegexSchemaAssetFilter('~^(?!s_)~'); |
||
| 15 | |||
| 16 | $manager = new SchemaAssetsFilterManager([$filterA, $filterB]); |
||
| 17 | $tables = ['do_not_filter', 't_filter_me', 's_filter_me_too']; |
||
| 18 | $this->assertSame( |
||
| 19 | ['do_not_filter'], |
||
| 20 | array_values(array_filter($tables, $manager)) |
||
| 21 | ); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |