KevBurnsJr
7d3f312b4c
Adding test for delimiter switching in partials
2011-06-12 17:20:03 -07:00
Justin Hileman
834d612f1e
Merge branch 'dev' into feature/whitespace-overhaul
2010-12-08 08:23:13 -05:00
Justin Hileman
7cb2029ec2
Add test for double-rendered sections, prevent mustache injection (see fix for mustache.js: http://hile.mn/fOVoW1 ...)
2010-12-08 08:16:06 -05:00
Justin Hileman
3e6b8102b7
Massive overhaul of Mustache.php's whitespace handling.
...
Move regex preparation into methods, use named subpatterns so the regex makes more sense. Fix the logic around eating newlines adjacent to tags. Update tests to reflect the changes.
2010-11-24 07:45:24 -05:00
Justin Hileman
fa0e7fac80
Merge branch 'dev' into feature/section-stack
2010-11-24 03:52:22 -05:00
Justin Hileman
943aa8849a
Add test groups for easier test breakdown.
2010-11-24 03:36:23 -05:00
Justin Hileman
38accdaf89
More correct sections implementation.
...
Allows nested sections of the same name, throws exceptions on incorrectly nested sections, e.g.:
{{#foo}}{{#bar}}{{/foo}}{{/bar}}
Add a set of tests for incorrectly nested sections.
2010-11-24 03:16:18 -05:00
Justin Hileman
f91f74ef1b
Clean up comments and whitespace.
2010-08-15 06:55:12 -04:00
Justin Hileman
e2546d40c1
Minor test coverage improvements.
...
Add regression test for newlines in comments. Add rudimentary partials test.
2010-08-15 06:54:54 -04:00
Justin Hileman
582c3278fa
Add known issue for whitespace, mark whitespace test as skipped.
2010-08-15 06:28:56 -04:00
Justin Hileman
c2c01cf964
only test examples which find a php class.
2010-07-06 10:09:00 -04:00
Justin Hileman
e026d8e7f5
Fix for examples directory iterator in PHP 5.2. Future-proof things a bit by actually checking for file extension before accessing that index.
2010-07-05 23:29:28 -04:00
Justin Hileman
b096cb108d
fix for PHPUnit 3.5.0 - no longer including PHPUnit/Framework.php in tests.
2010-06-22 07:13:17 -04:00
Justin Hileman
b300b31752
prepared regex should escape regex delimiter as well.
2010-06-11 16:36:40 -04:00
Justin Hileman
12096e0b8c
Cleaned up regex string preparation.
2010-06-11 16:24:46 -04:00
Justin Hileman
38a5e57514
Added context and section unit tests for dot notation pragma.
2010-06-01 17:02:36 -04:00
Justin Hileman
38d778b825
fixed typo in test message.
2010-05-27 17:05:36 -04:00
Justin Hileman
5cb4c7e2f1
Skipping delimiters test until bug is fixed.
2010-05-27 16:05:45 -04:00
Justin Hileman
fd3dc292a3
Merge branch 'feature/fix-partials' into dev
2010-05-24 10:35:00 -04:00
Justin Hileman
f0ed2ad499
Added test for template retention in subsequent render invocations.
2010-05-24 10:29:43 -04:00
Justin Hileman
619a48674b
fixed name of clone test, added more assertions.
2010-05-22 22:41:50 -04:00
Justin Hileman
5ade8a5ee3
Added unit test for Mustache clone method.
2010-05-22 20:41:12 -04:00
Justin Hileman
f4ef3ba30e
Added test case for multiple (trivial) invocations of Mustache::render
2010-05-16 15:08:21 -04:00
Justin Hileman
ac365c052e
Further testing for Mustache constructor.
2010-04-30 20:05:43 -04:00
Justin Hileman
4d40070c69
Added __toString() test.
2010-04-29 21:35:41 -04:00
Justin Hileman
a9ea1db322
Added unit tests for constuctor and render() methods.
2010-04-29 21:24:03 -04:00
Justin Hileman
6350e6180b
Inverting expected/actual param order in MustacheTest so the unit test output makes sense.
2010-04-26 19:24:29 -04:00
Justin Hileman
3108aff56d
fixing documentation for unit tests
2010-04-25 17:55:43 -04:00
Justin Hileman
6e508d5b48
Rudimentary unit test script.
2010-04-25 17:53:51 -04:00