Replace uniqid calls with $this->getUniqueID so tests pass again on windows

@MorrisJobke @LukasReschke 
PHPDoc ???