getKnownUuid()); $factoryMock = m::mock(UuidFactory::class . '[uuid4]', [ 'uuid4' => $uuid, ]); Uuid::setFactory($factoryMock); } /** * Returns the known UUID for tests to use. */ public function getKnownUuid(): string { return $this->knownUuid; } }