尊重验证并重置连接

I'm using the Respect\Validation library and I cannot get meaningful exceptions to print out apart from the first message.

This code gives me an error:

try {
    $foo = \Respect\Validation\Validator::notEmpty();
    $foo->assert('');
} catch (\InvalidArgumentException $e) {
    echo $e->getFullMessage();
}

Error code: ERR_CONNECTION_RESET

However, this code works fine:

try {
    $foo = \Respect\Validation\Validator::notEmpty();
    $foo->check('');
} catch (\InvalidArgumentException $e) {
    echo $e->getMainMessage();
}

I've tried turning off Xdebug but that didn't solve the problem. My version of PHP is 5.4.3.