public function testApiGenId_GeneratesUniqId() { $gen = $this->createHashSupportMock(); $prefix = 'test'; $this->assertRegExp("#^{$prefix}([a-z0-9]*?)\\.([a-z0-9]*?)\$#si", $gen::hash($prefix)); }