77, 'MonitorId'=>1, 'StorageId'=>3, 'Scheme'=>'Medium', 'StartDateTime'=>null, 'DiskSpace'=>null, 'EndDateTime'=>null)); $got = $event->DiskSpace(); check('no path: nothing measured', $measured, array()); check('no path: no size', $got, null); $event = new Event(array('Id'=>78, 'MonitorId'=>1, 'StorageId'=>3, 'Scheme'=>'Shallow', 'StartDateTime'=>'2024-05-06 07:08:09', 'DiskSpace'=>null, 'EndDateTime'=>null)); $got = $event->DiskSpace(); check('with path: event directory measured', $measured, array('/var/cache/zoneminder/events/1/78')); check('with path: size returned', $got, 4096); array_map('unlink', glob($stubdir.'/*')); @rmdir($stubdir); exit($failures ? 1 : 0);