Physikerwelt asked for some guidance on how to write good unit tests for classes that depend on external resources. I wrote a few to serve as examples for additional tests. Because they have an ulterior didactic purpose, the comments are a bit more verbose than I would otherwise like, but despite that the tests are good enough to merit being merged. Change-Id: Ifa97eec1a68fb68b4744d1e5b192b410afe5ef68 |
||
---|---|---|
db | ||
math | ||
modules | ||
tests | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
Math.hooks.php | ||
Math.i18n.php | ||
Math.php | ||
MathMathJax.php | ||
MathRenderer.php | ||
MathSource.php | ||
MathTexvc.php | ||
README | ||
mathParserTests.txt |
README
This version (for MediaWiki 1.19) has some changes since previous versions: * rendering options have been reduced to just 'Always PNG' and 'Leave it as TeX' ** all other rendering options will merge to PNG. * initial experimental support for integrating MathJax client-side rendering See the README in the math subdirectory for more info on setting up the low-level conversion tools. For testing your installation run php tests/phpunit/phpunit.php extensions/Math/tests/ from your MediWiki home path.