*/ namespace oat\generis\test\unit\helpers; use oat\generis\Helper\UuidPrimaryKeyTrait; use oat\generis\test\TestCase; class UuidPrimaryKeyTraitTest extends TestCase { public function testGetUniquePrimaryKey() { $fixture = new class { use UuidPrimaryKeyTrait; }; $uuid = $fixture->getUniquePrimaryKey(); $this->assertTrue(is_string($fixture->getUniquePrimaryKey())); $this->assertEquals(36, strlen($uuid)); } }