This produces an error for me in PHPUnit:
Fatal error: Call to undefined method Zend\ServiceManager\ServiceManager::getServiceLocator() in <path>/Password/Factory/BcryptFactory.php on line 31