From 54d91b667be92b92c5ef0944d806e894959b9fdd Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 15 Aug 2010 06:33:55 -0400 Subject: [PATCH] Adjust _renderTag so xdebug relizes that it actually has full test coverage. This commit marks 100% test coverage of Mustache.php. --- Mustache.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Mustache.php b/Mustache.php index 1ba62e3..97200c7 100644 --- a/Mustache.php +++ b/Mustache.php @@ -452,14 +452,12 @@ class Mustache { return $this->_renderUnescaped($tag_name); } break; - case '': - default: - if ($this->_hasPragma(self::PRAGMA_UNESCAPED)) { - return $this->_renderUnescaped($tag_name); - } else { - return $this->_renderEscaped($tag_name); - } - break; + } + + if ($this->_hasPragma(self::PRAGMA_UNESCAPED)) { + return $this->_renderUnescaped($modifier . $tag_name); + } else { + return $this->_renderEscaped($modifier . $tag_name); } }