protected function getRepository($mocks) { return new DatabaseTokenRepository($mocks['connection'], $mocks['table'], $mocks['hashKey'], $mocks['expires']); }