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

@MorrisJobke @LukasReschke 
Any specific reason this is static?