Adjust _renderTag so xdebug relizes that it actually has full test coverage. This commit marks 100% test coverage of Mustache.php.
This commit is contained in:
+6
-8
@@ -452,14 +452,12 @@ class Mustache {
|
|||||||
return $this->_renderUnescaped($tag_name);
|
return $this->_renderUnescaped($tag_name);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '':
|
}
|
||||||
default:
|
|
||||||
if ($this->_hasPragma(self::PRAGMA_UNESCAPED)) {
|
if ($this->_hasPragma(self::PRAGMA_UNESCAPED)) {
|
||||||
return $this->_renderUnescaped($tag_name);
|
return $this->_renderUnescaped($modifier . $tag_name);
|
||||||
} else {
|
} else {
|
||||||
return $this->_renderEscaped($tag_name);
|
return $this->_renderEscaped($modifier . $tag_name);
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user