[#5942] skip some tests when ext/intl is not present

- When @ralphschindler ran using a PHP version that did not have
  ext/intl, these two tests failed. They should not run in that
  situation.