function testUnregister() { PasswordEncryptor::register('test', 'PasswordEncryptorTest_TestEncryptor'); PasswordEncryptor::unregister('test'); $this->assertNotContains('test', array_keys(PasswordEncryptor::get_encryptors())); }