/**
  * Convert a UUID string to binary data.
  *
  * @param string $uuid The UUID string.
  *
  * @return string The binary data
  */
 public static function uuidToBin($uuid)
 {
     if (self::isStringUtilAvailable()) {
         return StringUtil::uuidToBin($uuid);
     }
     return \Contao\String::uuidToBin($uuid);
 }
 function it_filters_empty_values()
 {
     $uuids = ['31092867-468d-11e5-945d-e766493b4cce', '8a4d64cc-73f7-11e5-a93d-236cb64a50b1'];
     $value = [String::uuidToBin('31092867-468d-11e5-945d-e766493b4cce'), '', null, false, String::uuidToBin('8a4d64cc-73f7-11e5-a93d-236cb64a50b1')];
     $this->format($value, 'test', [])->shouldReturn($uuids);
 }