assertNotEmpty($errors); } public function testRejectsMismatch(): void { $errors = UserService::validatePassword('Abcd1234$efg', 'Abcd1234$xxx', true, 'test@example.com'); $this->assertNotEmpty($errors); } public function testAcceptsStrongPassword(): void { $errors = UserService::validatePassword('StrongPass1!', 'StrongPass1!', true, 'test@example.com'); $this->assertSame([], $errors); } public function testRejectsPasswordContainingEmail(): void { $errors = UserService::validatePassword('test@example.comA1!', 'test@example.comA1!', true, 'test@example.com'); $this->assertNotEmpty($errors); } }