$args = ['%source' => $str, '%context' => $context];
// Make sure that the string was found in the file.
$args = ['%source' => $str, '%context' => $context];
// Make sure that the string was found in the file.
- $this->assertTrue(isset($source_strings[$str]), SafeMarkup::format('Found source string: %source', $args));
+ $this->assertTrue(isset($source_strings[$str]), new FormattableMarkup('Found source string: %source', $args));
- $message = $context ? SafeMarkup::format('Context for %source is %context', $args) : SafeMarkup::format('Context for %source is blank', $args);
+ $message = $context ? new FormattableMarkup('Context for %source is %context', $args) : new FormattableMarkup('Context for %source is blank', $args);