Client's test

This commit is contained in:
fogelito committed 2026-04-23 16:16:24 +03:00
1 parent 677a21c53f
commit 758c8dac6a
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()->getClusterTime());
}
/**
* @throws Exception