'synthetic-'.$i, 'type' => 'ss', 'server' => 'example.invalid', 'port' => 443, 'cipher' => $i % 4 === 0 ? 'invalid-synthetic' : 'aes-128-gcm', 'password' => 'synthetic']; } $validator = new NativeValidator('', $mh); $good = $validator->filter('clash', $rows); self::assertCount(24, $good); self::assertCount(8, $validator->rejected['clash']); self::assertLessThanOrEqual(10, $validator->checks); } }