@Given there is :nb dummy objects

@param int $nbr
969685
public function thereIsDummyObjects($nbr)
    {
        for ($i = 1; $i <= $nbr; ++$i) {
            $dummy = new Dummy();
            $dummy->setName('Dummy #'.$i);
            $dummy->setAlias('Alias #'.($nbr - $i));

            $this->manager->persist($dummy);
        }

        $this->manager->flush();
    }
233980
public function setRefid(Reference $r)
    {
        if ((isset($this->dir) && null !== $this->dir) || $this->defaultPatterns->hasPatterns()) {
            throw $this->tooManyAttributes();
        }
        if (!empty($this->additionalPatterns)) {
            throw $this->noChildrenAllowed();
        }
        if (!empty($this->selectorsList)) {
            throw $this->noChildrenAllowed();
        }
        parent::setRefid($r);
    }
909205
public function offsetSet($index = null, $newvalue) : void
    {
        if (!isset($index)) {
            $index = count((array)$this);
        }
        if (is_object($newvalue)
            && method_exists($newvalue, 'setIdPrefix')
            && isset($this->attributes['id'])
        ) {
            $newvalue->setIdPrefix($this->attributes['id']);
        }
        parent::offsetSet($index, $newvalue);
    }
1031109
public function setMessagingId(int $nb_messaging_id) : CNabuDataObject
    {
        if ($nb_messaging_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_messaging_id")
            );
        }
        $this->setValue('nb_messaging_id', $nb_messaging_id);
        
        return $this;
    }
1192888
public function setnx($key, $value, $cb = null)
    {
        $this->redis->setnx($this->config->redisprefix->value . $key, $value, $cb);
    }
931989
public static function pluriel($singulier, $pluriel, $nb) {
		if ($nb == 0) {
			$result="Aucun " . $singulier;
		} else {
			$result=sprintf(ngettext("%d " . $singulier, "%d " . $pluriel, $nb), $nb);
		}
		return $result;
	}
367324
public function fillFromSite($nb_site) : int
    {
        $this->clear();
        $this->merge(CNabuRole::getRolesForSite($nb_site));
        
        return $this->getSize();
    }
188957
public function setCatalogId(int $nb_catalog_id) : CNabuDataObject
    {
        if ($nb_catalog_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_catalog_id")
            );
        }
        $this->setValue('nb_catalog_id', $nb_catalog_id);
        
        return $this;
    }
348950
private function init()
    {
        $this->nb_response = new CNabuHTTPResponse($this->nb_plugins_manager, $this);

        $this->nb_site = null;
        $this->nb_site_alias = null;
        $this->nb_site_target = null;
        $this->nb_language = null;

        $this->user_remote_ip = null;
        $this->user_agent = null;
        $this->accept_mimetypes = null;
        $this->accept_languages = null;
        $this->method = null;

        $this->secure = false;
        $this->zone = null;

        $this->page_uri = null;

        $this->variables = array();

        // This block is intended for XDR IE8 & IE9 compatibility
        /*
        if (count($_POST) === 0) {
            if (isset($HTTP_RAW_POST_DATA)) {
                parse_str($HTTP_RAW_POST_DATA, $this->xdr_post);
            } else {
                parse_str(file_get_contents('php://input'), $this->xdr_post);
            }
        }
        */
    }
364675
public function iuxor(BN $num) {
        $this->bi = $this->bi->binaryXor($num->bi);
        return $this;
    }
894818
public function setCustomerId(int $nb_customer_id) : CNabuDataObject
    {
        if ($nb_customer_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_customer_id")
            );
        }
        $this->setValue('nb_customer_id', $nb_customer_id);
        
        return $this;
    }
383571
public function setLanguage(CNabuLanguage $nb_language)
    {
        if ($nb_language->isValueNumeric(NABU_LANG_FIELD_ID) || $nb_language->isValueGUID(NABU_LANG_FIELD_ID)) {
            $nb_language_id = $nb_language->getValue(NABU_LANG_FIELD_ID);
            $this->languages_list->addItem($nb_language);
        }
    }
856647
public function init(ServiceBlob $blob)
    {
        parent::init($blob);

        $this->extension = $blob->metadata->getExtension();
        $this->mime = $blob->getMime();
        $this->mimeType = $blob->metadata->getMimeType();
        $this->thumbs = $blob->getThumbsDetails();
    }
292173
public function setProjectId(int $nb_project_id) : CNabuDataObject
    {
        if ($nb_project_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_project_id")
            );
        }
        $this->setValue('nb_project_id', $nb_project_id);
        
        return $this;
    }
789101
public function set($key, $value, $ttl = null, $nx = false)
    {
        $this->log(__FUNCTION__, $key);
        return $this->persistence->set($key, $value, $ttl, $nx);
    }
807567
private function setMetaWhereParams(&$nq)
    {
        foreach($this->templateVars as $name => $value)
        {
            if  (strpos($name, '#') === 0)
                $nq->setParameter($name, $value);
        }
    }
232062
public function imul(BN $num) {
        $this->bi = $this->bi->mul($num->bi);
        return $this;
    }