public function PMPAPIWebTestCase::testPmpAPIGetValidGUID in Public Media Platform API Integration 7
Gets a GUID (locally generated from the SDK).
File
- tests/
pmpapi.test, line 47
Class
- PMPAPIWebTestCase
- Tests the functionality of the PMPAPI module.
Code
public function testPmpAPIGetValidGUID() {
$guid = pmpapi_guid();
$valid_guid = preg_match("/[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab]{1}[0-9a-f]{3}-[0-9a-f]{12}/", $guid);
$this
->assertTrue($valid_guid, 'generated a valid guid.');
}