protected function describeTextMatch($substring, $subject) { $position = strpos($subject, $substring); $dumper = $this->getDumper(); return "Text [{$substring}] detected at character [{$position}] in [" . $dumper->describeValue($subject) . '] in region [' . $dumper->clipString($subject, 100, $position) . ']'; }