. */ namespace Xibo\Tests\Xmds; trait XmdsHelperTrait { public function getRf(string $version) { return ' 6v4RduQhaw5Q PHPUnit'.$version.' '; } public function notifyStatus(string $version, string $status) { return ' 6v4RduQhaw5Q PHPUnit'.$version.' '.$status.' '; } public function register( $hardwareKey, $displayName, $clientType, $clientVersion = '4', $clientCode = '400', $macAddress = 'CC:40:D0:46:3C:A8' ) { return ' 6v4RduQhaw5Q ' . $hardwareKey . ' ' . $displayName . ' ' . $clientType . ' ' . $clientVersion . ' ' . $clientCode . ' ' . $macAddress . ' '; } public function getSchedule($hardwareKey) { return ' 6v4RduQhaw5Q ' . $hardwareKey . ' '; } public function reportFault($version) { return ' 6v4RduQhaw5Q PHPUnit'.$version.' [{"date":"2023-04-20 17:03:52","expires":"2023-04-21 17:03:52","code":"10001","reason":"Test","scheduleId":"0","layoutId":0,"regionId":"0","mediaId":"0","widgetId":"0"}] '; } public function getWidgetData($version, $widgetId) { return ' 6v4RduQhaw5Q PHPUnit'. $version .' '.$widgetId.' '; } public function submitEventLog($version): string { return ' 6v4RduQhaw5Q PHPUnit'. $version .' <log><event date="2024-04-10 12:45:55" category="event"><eventType>App Start</eventType><message>Detailed message about this event</message><alertType>both</alertType><refId></refId></event></log> '; } }