Exiting with 1 when Exception::getCode() returns non-integer values.

From [php.net/exception.getcode](http://php.net/exception.getcode)
> Returns the exception code as integer in Exception but possibly as other type in Exception descendants (for example as string in PDOException).

Yes, it uses Reflection. But since the method is final I couldn't use PHPUnit Mock Generator on it and instantiating Exception with a non-integer code results in error. Only solution I found was to use Reflection in order to properly test this.
is_int()