assertEquals($password, $event->getPassword()); $this->assertEquals(PasswordContext::ACCOUNT, $event->getContext()); } public function testSettingContext(): void { $event = new ValidatePasswordPolicyEvent('example', PasswordContext::SHARING); $this->assertEquals(PasswordContext::SHARING, $event->getContext()); } }