EXPECTF logic in run-tests.php is considerable, so let's avoid it.
`from` and `len` are `long`, but get passed to mbfl_substr() which expects `int`s. Therefore we clamp the values to avoid the undefined conversion behavior.