summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* Move to r7r namespace and r7r composer package vendor2.0.0Laria Carolin Chabowski2020-09-21
| | | | | | Let's face it, no one but my CMS Ratatöskr (r7r for short) uses this template engine anyway. Also it's a good excuse to get rid of more remnants of my old kch42 nickname.
* Tests: Also test parsing pseudotagsLaria Carolin Chabowski2020-09-15
|
* Tests: Test parsing invalid inputLaria Carolin Chabowski2020-09-15
| | | | >95% coverage of the parser, hooray!
* Add some unit tests for the parserLaria Carolin Chabowski2020-09-15
| | | | So far only testing success, we should also test failing parse inputs.
* Code cleanupLaria Carolin Chabowski2020-09-13
| | | | | | - Add parameter and return types - Add missing @throws tags - Add visibilities to consts
* Use short array syntaxLaria Carolin Chabowski2020-09-13
| | | | We can use it now that we switched to PHP 7.3
* Turn our functional tests into PhpUnit testsLaria Carolin Chabowski2020-09-13
|
* Fix cutting off whitespace in tag contentLaria Carolin Chabowski2020-05-01
|
* Fix parsing `]` as last input charLaria Carolin Chabowski2020-05-01
| | | | Previously ] was duplicated in the ouput
* Add STECore typehint in generated test codeLaria Carolin Chabowski2020-05-01
|
* Fix compiling static numeric array accessLaria Carolin Chabowski2020-05-01
|
* Clean up code and improve documentationLaria Carolin Chabowski2020-05-01
| | | | | | | | | | | | | | This switches the code documentation genarator (we're now using phpdoc instead of NaturalDoc). Also various small code cleanup tasks: - Remove unused code - Get rid of `and` / `or`, we're using `&&` / `||` now - Adding missing return values - Helping PhpStorm to detect some dynamically called functions (mark_builtin_callable in Transcompiler) - Reword transcompiling => compiling in documentation
* tests: Make it easier to run a single testLaria Carolin Chabowski2020-05-01
|
* Automatic code formattingLaria Carolin Chabowski2020-04-30
| | | | Also add git hooks that checks formatting
* Fix parser stumbling over "0" in namesLaria Carolin Chabowski2020-04-28
| | | | PHPs type juggling strikes again :(
* Some simple code formattingLaria Carolin Chabowski2020-04-26
| | | | | | - Expand tabs into spaces - Remove trailing whitespace - Get rid of closing `?>` tags
* Refined test_closureKevin Chabowski2014-05-24
|
* Added ste:setlocal and refined test_scope.Kevin Chabowski2014-05-24
|
* Simple autoloader for examples and tests.Kevin Chabowski2014-05-24
|
* Added scoping.Kevin Chabowski2014-05-24
| | | | | | | | | | | | | | | ste:mktag generated tags now have an own scope. They even resemble closures, since they inherit their parent scope. A lot of work was done to keep this compatible with older programs. However: * Templates that relied on the non-scoping behavior of tags will probably fail. * Since $ste->vars is no longer an actual array, things like $ste->vars["foo"]["bar"] = "baz" are no longer possible! A single field access will still work: $ste->vars["foo"] = "bar"
* Fixed ste:getKevin Chabowski2014-05-24
| | | | | | Didn't work at all before. The varname was not passed correctly. Also added the test case that showed this.
* ste:foreach now has an else clause for empty arrays.Kevin Chabowski2013-10-28
|
* Fixed wrong include paths.Kevin Chabowski2013-10-28
|
* New Testparser2Kevin Chabowski2013-10-25
|
* short cmp tags can now contain tags.Kevin Chabowski2013-10-25
| | | | | | | | To accomplish this, tag parameters can now be compiled, even if they contain tags (the parser still doesn't allow this, but the compiler can now handle this situation). Also reformatted the code.
* Made the tests more tolerant for whitespace.Kevin Chabowski2013-10-25
|
* Added some tests.Kevin Chabowski2013-10-23
| | | | | | Many of these break. Mostly because the way whitespace/newlines are added (or not added). This is terribly broken ATM... (It was okay with the old parser, I'll try to replicate that behaviour)
* Added some testsKevin Chabowski2013-10-23