TemplateParser: Don't fatal on cache misses
authorTimo Tijhof <krinklemail@gmail.com>
Sun, 22 Mar 2015 22:01:52 +0000 (22:01 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 23 Mar 2015 01:38:56 +0000 (01:38 +0000)
commitcfcaa33fcc424cd85444d71f10f6ce7cc2fb1e58
treefca39e6b7420ae7c750c6663a0961ae964279969
parent41b86bea62d181c69763e4d13918b0329a55e198
TemplateParser: Don't fatal on cache misses

Also add regression test, and coverage for more methods.

Was trying to eval the code which had the hmac integrity check in front of it,
which causes a syntax error in valid PHP code.

Follows-up db1866da450c50bea2e.

Bug: T93436
Bug: T93511
Change-Id: Ie90074e4885de7340e53f59fdd479f5384b5eac6
includes/TemplateParser.php
tests/phpunit/data/templates/foobar.mustache [new file with mode: 0644]
tests/phpunit/includes/TemplateParserTest.php