Hmm, I've just seen that all current DokuWiki core syntax tests are written that way as well. So, that seems to be okay. (I still find it weird that the output is not at least a secondary aspect of the tests.)