Merge pull request #38 from utopia-php/get-host

Client's get host
This commit is contained in:
Jake Barnby authored and GitHub committed 2026-04-24 18:15:10 +12:00
commit 73593682de
2 files changed
+14

No files matched your search

+10
View File
@@ -228,6 +228,16 @@ class Client
return $this;
}
/**
* Return client's host
*
* @return string
*/
public function getHost(): string
{
return $this->host;
}
/**
* Create a UUID using UUID7 standard for MongoDB _id field.
*
+4
View File
@@ -41,6 +41,10 @@ class MongoTest extends TestCase
self::assertTrue($this->getDatabase()->dropDatabase());
}
public function testGetHost()
{
self::assertSame('mongo', $this->getDatabase()->getHost());
}
/**
* @throws Exception