'', 'expected' => false, ], [ 'password' => 'password123', 'expected' => false, ], [ 'password' => 'This is a really long and complex PASSWORD', 'expected' => true, ], ]; } #[DataProvider('provideValidate')] public function testValidate(string $password, bool $expected): void { $validator = new EntropyPasswordValidator(); $this->assertSame($expected, $validator->validate($password, new Member())->isValid()); } }