Am 31.07.2013 13:42, schrieb Tim Starling:
We could have a library of PHPUnit-style assertion functions which throw exceptions and don't act like eval(), I would be fine with that. Maybe MWAssert::greaterThan( $foo, $bar ) or something.
I like that! Should support an error message as an optional parameter. I suppose we could just steal the method signatures from phpunit.
-- daniel _______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech