Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating tests

  • Loading branch information...
commit d930505ec5bc582bb7ec70d05769172f620933be 1 parent 3e5d407
@jbboehr authored
Showing with 93 additions and 89 deletions.
  1. +3 −0  .gitmodules
  2. +1 −1  generate-tests.php
  3. +1 −0  spec
  4. +1 −1  tests/mustache-spec-comments-indented-inline.phpt
  5. +1 −1  tests/mustache-spec-comments-indented-multiline-standalone.phpt
  6. +1 −1  tests/mustache-spec-comments-indented-standalone.phpt
  7. +1 −1  tests/mustache-spec-comments-multiline-standalone.phpt
  8. +1 −1  tests/mustache-spec-comments-multiline.phpt
  9. +1 −1  tests/mustache-spec-comments-standalone-line-endings.phpt
  10. +1 −1  tests/mustache-spec-comments-standalone-without-newline.phpt
  11. +1 −1  tests/mustache-spec-comments-standalone.phpt
  12. +1 −1  tests/mustache-spec-comments-surrounding-whitespace.phpt
  13. +1 −1  tests/mustache-spec-delimiters-indented-standalone-tag.phpt
  14. +1 −1  tests/mustache-spec-delimiters-inverted-sections.phpt
  15. +1 −1  tests/mustache-spec-delimiters-outlying-whitespace-inline.phpt
  16. +1 −1  tests/mustache-spec-delimiters-partial-inheritence.phpt
  17. +1 −1  tests/mustache-spec-delimiters-post-partial-behavior.phpt
  18. +1 −1  tests/mustache-spec-delimiters-sections.phpt
  19. +1 −1  tests/mustache-spec-delimiters-special-characters.phpt
  20. +1 −1  tests/mustache-spec-delimiters-standalone-line-endings.phpt
  21. +1 −1  tests/mustache-spec-delimiters-standalone-tag.phpt
  22. +1 −1  tests/mustache-spec-delimiters-standalone-without-newline.phpt
  23. +1 −1  tests/mustache-spec-delimiters-surrounding-whitespace.phpt
  24. +1 −1  tests/mustache-spec-interpolation-ampersand-context-miss-interpolation.phpt
  25. +1 −1  tests/mustache-spec-interpolation-ampersand-decimal-interpolation.phpt
  26. +1 −1  tests/mustache-spec-interpolation-ampersand-integer-interpolation.phpt
  27. +1 −1  tests/mustache-spec-interpolation-ampersand-standalone.phpt
  28. +1 −1  tests/mustache-spec-interpolation-ampersand-surrounding-whitespace.phpt
  29. +1 −1  tests/mustache-spec-interpolation-ampersand.phpt
  30. +1 −1  tests/mustache-spec-interpolation-basic-context-miss-interpolation.phpt
  31. +1 −1  tests/mustache-spec-interpolation-basic-decimal-interpolation.phpt
  32. +1 −1  tests/mustache-spec-interpolation-basic-integer-interpolation.phpt
  33. +1 −1  tests/mustache-spec-interpolation-basic-interpolation.phpt
  34. +1 −1  tests/mustache-spec-interpolation-dotted-names-ampersand-interpolation.phpt
  35. +1 −1  tests/mustache-spec-interpolation-dotted-names-arbitrary-depth.phpt
  36. +1 −1  tests/mustache-spec-interpolation-dotted-names-basic-interpolation.phpt
  37. +1 −1  tests/mustache-spec-interpolation-dotted-names-broken-chain-resolution.phpt
  38. +1 −1  tests/mustache-spec-interpolation-dotted-names-broken-chains.phpt
  39. +1 −1  tests/mustache-spec-interpolation-dotted-names-initial-resolution.phpt
  40. +1 −1  tests/mustache-spec-interpolation-dotted-names-triple-mustache-interpolation.phpt
  41. +1 −1  tests/mustache-spec-interpolation-html-escaping.phpt
  42. +1 −1  tests/mustache-spec-interpolation-interpolation-standalone.phpt
  43. +1 −1  tests/mustache-spec-interpolation-interpolation-surrounding-whitespace.phpt
  44. +1 −1  tests/mustache-spec-interpolation-no-interpolation.phpt
  45. +1 −1  tests/mustache-spec-interpolation-triple-mustache-context-miss-interpolation.phpt
  46. +1 −1  tests/mustache-spec-interpolation-triple-mustache-decimal-interpolation.phpt
  47. +1 −1  tests/mustache-spec-interpolation-triple-mustache-integer-interpolation.phpt
  48. +1 −1  tests/mustache-spec-interpolation-triple-mustache-standalone.phpt
  49. +1 −1  tests/mustache-spec-interpolation-triple-mustache-surrounding-whitespace.phpt
  50. +1 −1  tests/mustache-spec-interpolation-triple-mustache.phpt
  51. +1 −1  tests/mustache-spec-inverted-context-misses.phpt
  52. +1 −1  tests/mustache-spec-inverted-dotted-names-broken-chains.phpt
  53. +1 −1  tests/mustache-spec-inverted-dotted-names-falsey.phpt
  54. +1 −1  tests/mustache-spec-inverted-dotted-names-truthy.phpt
  55. +1 −1  tests/mustache-spec-inverted-doubled.phpt
  56. +1 −1  tests/mustache-spec-inverted-empty-list.phpt
  57. +1 −1  tests/mustache-spec-inverted-falsey.phpt
  58. +1 −1  tests/mustache-spec-inverted-indented-inline-sections.phpt
  59. +1 −1  tests/mustache-spec-inverted-internal-whitespace.phpt
  60. +1 −1  tests/mustache-spec-inverted-nested-falsey.phpt
  61. +1 −1  tests/mustache-spec-inverted-nested-truthy.phpt
  62. +1 −1  tests/mustache-spec-inverted-standalone-indented-lines.phpt
  63. +1 −1  tests/mustache-spec-inverted-standalone-line-endings.phpt
  64. +1 −1  tests/mustache-spec-inverted-standalone-lines.phpt
  65. +1 −1  tests/mustache-spec-inverted-standalone-without-newline.phpt
  66. +1 −1  tests/mustache-spec-inverted-standalone-without-previous-line.phpt
  67. +1 −1  tests/mustache-spec-inverted-surrounding-whitespace.phpt
  68. +1 −1  tests/mustache-spec-partials-basic-behavior.phpt
  69. +1 −1  tests/mustache-spec-partials-inline-indentation.phpt
  70. +1 −1  tests/mustache-spec-partials-standalone-indentation.phpt
  71. +1 −1  tests/mustache-spec-partials-standalone-line-endings.phpt
  72. +1 −1  tests/mustache-spec-partials-standalone-without-newline.phpt
  73. +1 −1  tests/mustache-spec-partials-standalone-without-previous-line.phpt
  74. +1 −1  tests/mustache-spec-partials-surrounding-whitespace.phpt
  75. +1 −1  tests/mustache-spec-sections-context.phpt
  76. +1 −1  tests/mustache-spec-sections-deeply-nested-contexts.phpt
  77. +1 −1  tests/mustache-spec-sections-dotted-names-broken-chains.phpt
  78. +1 −1  tests/mustache-spec-sections-dotted-names-falsey.phpt
  79. +1 −1  tests/mustache-spec-sections-dotted-names-truthy.phpt
  80. +1 −1  tests/mustache-spec-sections-doubled.phpt
  81. +1 −1  tests/mustache-spec-sections-indented-inline-sections.phpt
  82. +1 −1  tests/mustache-spec-sections-indented-standalone-lines.phpt
  83. +1 −1  tests/mustache-spec-sections-internal-whitespace.phpt
  84. +1 −1  tests/mustache-spec-sections-nested-falsey.phpt
  85. +1 −1  tests/mustache-spec-sections-nested-truthy.phpt
  86. +1 −1  tests/mustache-spec-sections-standalone-line-endings.phpt
  87. +1 −1  tests/mustache-spec-sections-standalone-lines.phpt
  88. +1 −1  tests/mustache-spec-sections-standalone-without-newline.phpt
  89. +1 −1  tests/mustache-spec-sections-standalone-without-previous-line.phpt
  90. +1 −1  tests/mustache-spec-sections-surrounding-whitespace.phpt
  91. +1 −1  tests/mustache-spec-sections-truthy.phpt
View
3  .gitmodules
@@ -1,3 +1,6 @@
[submodule "mustache"]
path = mustache
url = git://github.com/jbboehr/libmustache.git
+[submodule "spec"]
+ path = spec
+ url = git://github.com/mustache/spec.git
View
2  generate-tests.php
@@ -56,7 +56,7 @@
foreach( preg_split('/\s+/', $test['expected']) as $chunk ) {
$tmp[] = preg_quote($chunk, '/');
}
- $output .= join("\s+", $tmp);
+ $output .= join("\s*", $tmp);
$cleanName = strtolower(trim(preg_replace('/[^a-zA-Z0-9]+/', '-', $test['name']), '-'));
file_put_contents('./tests/mustache-spec-' . $spec . '-' . $cleanName . '.phpt', $output);
1  spec
@@ -0,0 +1 @@
+Subproject commit 9b1bc7ad19247e9671304af02078f2ce30132665
View
2  tests/mustache-spec-comments-indented-inline.phpt
@@ -21,4 +21,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\s+12\s+
+\s*12\s*
View
2  tests/mustache-spec-comments-indented-multiline-standalone.phpt
@@ -26,4 +26,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-Begin\.\s+End\.\s+
+Begin\.\s*End\.\s*
View
2  tests/mustache-spec-comments-indented-standalone.phpt
@@ -24,4 +24,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-Begin\.\s+End\.\s+
+Begin\.\s*End\.\s*
View
2  tests/mustache-spec-comments-multiline-standalone.phpt
@@ -26,4 +26,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-Begin\.\s+End\.\s+
+Begin\.\s*End\.\s*
View
2  tests/mustache-spec-comments-multiline.phpt
@@ -24,4 +24,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-1234567890\s+
+1234567890\s*
View
2  tests/mustache-spec-comments-standalone-line-endings.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+\|
+\|\s*\|
View
2  tests/mustache-spec-comments-standalone-without-newline.phpt
@@ -21,4 +21,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\!\s+
+\!\s*
View
2  tests/mustache-spec-comments-standalone.phpt
@@ -24,4 +24,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-Begin\.\s+End\.\s+
+Begin\.\s*End\.\s*
View
2  tests/mustache-spec-comments-surrounding-whitespace.phpt
@@ -19,4 +19,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-12345\s+67890
+12345\s*67890
View
2  tests/mustache-spec-delimiters-indented-standalone-tag.phpt
@@ -24,4 +24,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-Begin\.\s+End\.\s+
+Begin\.\s*End\.\s*
View
2  tests/mustache-spec-delimiters-inverted-sections.phpt
@@ -40,4 +40,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\[\s+I\s+got\s+interpolated\.\s+\|data\|\s+\{\{data\}\}\s+I\s+got\s+interpolated\.\s+\]\s+
+\[\s*I\s*got\s*interpolated\.\s*\|data\|\s*\{\{data\}\}\s*I\s*got\s*interpolated\.\s*\]\s*
View
2  tests/mustache-spec-delimiters-outlying-whitespace-inline.phpt
@@ -21,4 +21,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\s+\|\s+
+\s*\|\s*
View
2  tests/mustache-spec-delimiters-partial-inheritence.phpt
@@ -29,4 +29,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\[\s+\.yes\.\s+\]\s+\[\s+\.yes\.\s+\]\s+
+\[\s*\.yes\.\s*\]\s*\[\s*\.yes\.\s*\]\s*
View
2  tests/mustache-spec-delimiters-post-partial-behavior.phpt
@@ -28,4 +28,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\[\s+\.yes\.\s+\.yes\.\s+\]\s+\[\s+\.yes\.\s+\.\|value\|\.\s+\]\s+
+\[\s*\.yes\.\s*\.yes\.\s*\]\s*\[\s*\.yes\.\s*\.\|value\|\.\s*\]\s*
View
2  tests/mustache-spec-delimiters-sections.phpt
@@ -40,4 +40,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\[\s+I\s+got\s+interpolated\.\s+\|data\|\s+\{\{data\}\}\s+I\s+got\s+interpolated\.\s+\]\s+
+\[\s*I\s*got\s*interpolated\.\s*\|data\|\s*\{\{data\}\}\s*I\s*got\s*interpolated\.\s*\]\s*
View
2  tests/mustache-spec-delimiters-special-characters.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\(It\s+worked\!\)
+\(It\s*worked\!\)
View
2  tests/mustache-spec-delimiters-standalone-line-endings.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+\|
+\|\s*\|
View
2  tests/mustache-spec-delimiters-standalone-tag.phpt
@@ -24,4 +24,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-Begin\.\s+End\.\s+
+Begin\.\s*End\.\s*
View
2  tests/mustache-spec-delimiters-standalone-without-newline.phpt
@@ -21,4 +21,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\=\s+
+\=\s*
View
2  tests/mustache-spec-delimiters-surrounding-whitespace.phpt
@@ -19,4 +19,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+\|
+\|\s*\|
View
2  tests/mustache-spec-interpolation-ampersand-context-miss-interpolation.phpt
@@ -19,4 +19,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-I\s+\(\)\s+be\s+seen\!
+I\s*\(\)\s*be\s*seen\!
View
2  tests/mustache-spec-interpolation-ampersand-decimal-interpolation.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"1\.21\s+jiggawatts\!"
+"1\.21\s*jiggawatts\!"
View
2  tests/mustache-spec-interpolation-ampersand-integer-interpolation.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"85\s+miles\s+an\s+hour\!"
+"85\s*miles\s*an\s*hour\!"
View
2  tests/mustache-spec-interpolation-ampersand-standalone.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\s+\-\-\-\s+
+\s*\-\-\-\s*
View
2  tests/mustache-spec-interpolation-ampersand-surrounding-whitespace.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+\-\-\-\s+\|
+\|\s*\-\-\-\s*\|
View
2  tests/mustache-spec-interpolation-ampersand.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-These\s+characters\s+should\s+not\s+be\s+HTML\s+escaped\:\s+&\s+"\s+\<\s+\>\s+
+These\s*characters\s*should\s*not\s*be\s*HTML\s*escaped\:\s*&\s*"\s*\<\s*\>\s*
View
2  tests/mustache-spec-interpolation-basic-context-miss-interpolation.phpt
@@ -19,4 +19,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-I\s+\(\)\s+be\s+seen\!
+I\s*\(\)\s*be\s*seen\!
View
2  tests/mustache-spec-interpolation-basic-decimal-interpolation.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"1\.21\s+jiggawatts\!"
+"1\.21\s*jiggawatts\!"
View
2  tests/mustache-spec-interpolation-basic-integer-interpolation.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"85\s+miles\s+an\s+hour\!"
+"85\s*miles\s*an\s*hour\!"
View
2  tests/mustache-spec-interpolation-basic-interpolation.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-Hello,\s+world\!\s+
+Hello,\s*world\!\s*
View
2  tests/mustache-spec-interpolation-dotted-names-ampersand-interpolation.phpt
@@ -23,4 +23,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"Joe"\s+\=\=\s+"Joe"
+"Joe"\s*\=\=\s*"Joe"
View
2  tests/mustache-spec-interpolation-dotted-names-arbitrary-depth.phpt
@@ -35,4 +35,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"Phil"\s+\=\=\s+"Phil"
+"Phil"\s*\=\=\s*"Phil"
View
2  tests/mustache-spec-interpolation-dotted-names-basic-interpolation.phpt
@@ -23,4 +23,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"Joe"\s+\=\=\s+"Joe"
+"Joe"\s*\=\=\s*"Joe"
View
2  tests/mustache-spec-interpolation-dotted-names-broken-chain-resolution.phpt
@@ -29,4 +29,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-""\s+\=\=\s+""
+""\s*\=\=\s*""
View
2  tests/mustache-spec-interpolation-dotted-names-broken-chains.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-""\s+\=\=\s+""
+""\s*\=\=\s*""
View
2  tests/mustache-spec-interpolation-dotted-names-initial-resolution.phpt
@@ -48,4 +48,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"Phil"\s+\=\=\s+"Phil"
+"Phil"\s*\=\=\s*"Phil"
View
2  tests/mustache-spec-interpolation-dotted-names-triple-mustache-interpolation.phpt
@@ -23,4 +23,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"Joe"\s+\=\=\s+"Joe"
+"Joe"\s*\=\=\s*"Joe"
View
2  tests/mustache-spec-interpolation-html-escaping.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-These\s+characters\s+should\s+be\s+HTML\s+escaped\:\s+&amp;\s+&quot;\s+&lt;\s+&gt;\s+
+These\s*characters\s*should\s*be\s*HTML\s*escaped\:\s*&amp;\s*&quot;\s*&lt;\s*&gt;\s*
View
2  tests/mustache-spec-interpolation-interpolation-standalone.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\s+\-\-\-\s+
+\s*\-\-\-\s*
View
2  tests/mustache-spec-interpolation-interpolation-surrounding-whitespace.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+\-\-\-\s+\|
+\|\s*\-\-\-\s*\|
View
2  tests/mustache-spec-interpolation-no-interpolation.phpt
@@ -21,4 +21,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-Hello\s+from\s+\{Mustache\}\!\s+
+Hello\s*from\s*\{Mustache\}\!\s*
View
2  tests/mustache-spec-interpolation-triple-mustache-context-miss-interpolation.phpt
@@ -19,4 +19,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-I\s+\(\)\s+be\s+seen\!
+I\s*\(\)\s*be\s*seen\!
View
2  tests/mustache-spec-interpolation-triple-mustache-decimal-interpolation.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"1\.21\s+jiggawatts\!"
+"1\.21\s*jiggawatts\!"
View
2  tests/mustache-spec-interpolation-triple-mustache-integer-interpolation.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"85\s+miles\s+an\s+hour\!"
+"85\s*miles\s*an\s*hour\!"
View
2  tests/mustache-spec-interpolation-triple-mustache-standalone.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\s+\-\-\-\s+
+\s*\-\-\-\s*
View
2  tests/mustache-spec-interpolation-triple-mustache-surrounding-whitespace.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+\-\-\-\s+\|
+\|\s*\-\-\-\s*\|
View
2  tests/mustache-spec-interpolation-triple-mustache.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-These\s+characters\s+should\s+not\s+be\s+HTML\s+escaped\:\s+&\s+"\s+\<\s+\>\s+
+These\s*characters\s*should\s*not\s*be\s*HTML\s*escaped\:\s*&\s*"\s*\<\s*\>\s*
View
2  tests/mustache-spec-inverted-context-misses.phpt
@@ -19,4 +19,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\[Cannot\s+find\s+key\s+'missing'\!\]
+\[Cannot\s*find\s*key\s*'missing'\!\]
View
2  tests/mustache-spec-inverted-dotted-names-broken-chains.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"Not\s+Here"\s+\=\=\s+"Not\s+Here"
+"Not\s*Here"\s*\=\=\s*"Not\s*Here"
View
2  tests/mustache-spec-inverted-dotted-names-falsey.phpt
@@ -26,4 +26,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"Not\s+Here"\s+\=\=\s+"Not\s+Here"
+"Not\s*Here"\s*\=\=\s*"Not\s*Here"
View
2  tests/mustache-spec-inverted-dotted-names-truthy.phpt
@@ -26,4 +26,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-""\s+\=\=\s+""
+""\s*\=\=\s*""
View
2  tests/mustache-spec-inverted-doubled.phpt
@@ -31,4 +31,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\*\s+first\s+\*\s+second\s+\*\s+third\s+
+\*\s*first\s*\*\s*second\s*\*\s*third\s*
View
2  tests/mustache-spec-inverted-empty-list.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"Yay\s+lists\!"
+"Yay\s*lists\!"
View
2  tests/mustache-spec-inverted-falsey.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"This\s+should\s+be\s+rendered\."
+"This\s*should\s*be\s*rendered\."
View
2  tests/mustache-spec-inverted-indented-inline-sections.phpt
@@ -24,4 +24,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\s+NO\s+WAY\s+
+\s*NO\s*WAY\s*
View
2  tests/mustache-spec-inverted-internal-whitespace.phpt
@@ -24,4 +24,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\s+\|\s+\|\s+
+\s*\|\s*\|\s*
View
2  tests/mustache-spec-inverted-nested-falsey.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+A\s+B\s+C\s+D\s+E\s+\|
+\|\s*A\s*B\s*C\s*D\s*E\s*\|
View
2  tests/mustache-spec-inverted-nested-truthy.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+A\s+E\s+\|
+\|\s*A\s*E\s*\|
View
2  tests/mustache-spec-inverted-standalone-indented-lines.phpt
@@ -28,4 +28,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+This\s+Is\s+\|\s+\|\s+A\s+Line\s+
+\|\s*This\s*Is\s*\|\s*\|\s*A\s*Line\s*
View
2  tests/mustache-spec-inverted-standalone-line-endings.phpt
@@ -24,4 +24,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+\|
+\|\s*\|
View
2  tests/mustache-spec-inverted-standalone-lines.phpt
@@ -28,4 +28,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+This\s+Is\s+\|\s+\|\s+A\s+Line\s+
+\|\s*This\s*Is\s*\|\s*\|\s*A\s*Line\s*
View
2  tests/mustache-spec-inverted-standalone-without-newline.phpt
@@ -24,4 +24,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\^\s+\/\s+
+\^\s*\/\s*
View
2  tests/mustache-spec-inverted-standalone-without-previous-line.phpt
@@ -23,4 +23,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\^\s+\/
+\^\s*\/
View
2  tests/mustache-spec-inverted-surrounding-whitespace.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\s+\|\s+\|\s+\|\s+
+\s*\|\s*\|\s*\|\s*
View
2  tests/mustache-spec-partials-basic-behavior.phpt
@@ -23,4 +23,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"from\s+partial"
+"from\s*partial"
View
2  tests/mustache-spec-partials-inline-indentation.phpt
@@ -28,4 +28,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\s+\|\s+\>\s+\>\s+
+\s*\|\s*\>\s*\>\s*
View
2  tests/mustache-spec-partials-standalone-indentation.phpt
@@ -37,4 +37,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\\\s+\|\s+\<\s+\-\>\s+\|\s+\/\s+
+\\\s*\|\s*\<\s*\-\>\s*\|\s*\/\s*
View
2  tests/mustache-spec-partials-standalone-line-endings.phpt
@@ -26,4 +26,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+\>\|
+\|\s*\>\|
View
2  tests/mustache-spec-partials-standalone-without-newline.phpt
@@ -27,4 +27,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\>\s+\>\s+\>
+\>\s*\>\s*\>
View
2  tests/mustache-spec-partials-standalone-without-previous-line.phpt
@@ -26,4 +26,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\s+\>\s+\>\>
+\s*\>\s*\>\>
View
2  tests/mustache-spec-partials-surrounding-whitespace.phpt
@@ -23,4 +23,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+\|\s+\|
+\|\s*\|\s*\|
View
2  tests/mustache-spec-sections-context.phpt
@@ -23,4 +23,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"Hi\s+Joe\."
+"Hi\s*Joe\."
View
2  tests/mustache-spec-sections-deeply-nested-contexts.phpt
@@ -67,4 +67,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-1\s+121\s+12321\s+1234321\s+123454321\s+1234321\s+12321\s+121\s+1\s+
+1\s*121\s*12321\s*1234321\s*123454321\s*1234321\s*12321\s*121\s*1\s*
View
2  tests/mustache-spec-sections-dotted-names-broken-chains.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-""\s+\=\=\s+""
+""\s*\=\=\s*""
View
2  tests/mustache-spec-sections-dotted-names-falsey.phpt
@@ -26,4 +26,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-""\s+\=\=\s+""
+""\s*\=\=\s*""
View
2  tests/mustache-spec-sections-dotted-names-truthy.phpt
@@ -26,4 +26,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"Here"\s+\=\=\s+"Here"
+"Here"\s*\=\=\s*"Here"
View
2  tests/mustache-spec-sections-doubled.phpt
@@ -31,4 +31,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\*\s+first\s+\*\s+second\s+\*\s+third\s+
+\*\s*first\s*\*\s*second\s*\*\s*third\s*
View
2  tests/mustache-spec-sections-indented-inline-sections.phpt
@@ -24,4 +24,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\s+YES\s+GOOD\s+
+\s*YES\s*GOOD\s*
View
2  tests/mustache-spec-sections-indented-standalone-lines.phpt
@@ -28,4 +28,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+This\s+Is\s+\|\s+\|\s+A\s+Line\s+
+\|\s*This\s*Is\s*\|\s*\|\s*A\s*Line\s*
View
2  tests/mustache-spec-sections-internal-whitespace.phpt
@@ -24,4 +24,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\s+\|\s+\|\s+
+\s*\|\s*\|\s*
View
2  tests/mustache-spec-sections-nested-falsey.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+A\s+E\s+\|
+\|\s*A\s*E\s*\|
View
2  tests/mustache-spec-sections-nested-truthy.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+A\s+B\s+C\s+D\s+E\s+\|
+\|\s*A\s*B\s*C\s*D\s*E\s*\|
View
2  tests/mustache-spec-sections-standalone-line-endings.phpt
@@ -24,4 +24,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+\|
+\|\s*\|
View
2  tests/mustache-spec-sections-standalone-lines.phpt
@@ -28,4 +28,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\|\s+This\s+Is\s+\|\s+\|\s+A\s+Line\s+
+\|\s*This\s*Is\s*\|\s*\|\s*A\s*Line\s*
View
2  tests/mustache-spec-sections-standalone-without-newline.phpt
@@ -24,4 +24,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-#\s+\/\s+
+#\s*\/\s*
View
2  tests/mustache-spec-sections-standalone-without-previous-line.phpt
@@ -23,4 +23,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-#\s+\/
+#\s*\/
View
2  tests/mustache-spec-sections-surrounding-whitespace.phpt
@@ -22,4 +22,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-\s+\|\s+\|\s+\|\s+
+\s*\|\s*\|\s*\|\s*
View
2  tests/mustache-spec-sections-truthy.phpt
@@ -20,4 +20,4 @@ $mustache = new Mustache();
echo $mustache->render($test["template"], $test["data"]);
?>
--EXPECTREGEX--
-"This\s+should\s+be\s+rendered\."
+"This\s*should\s*be\s*rendered\."
Please sign in to comment.
Something went wrong with that request. Please try again.