Issue #1 Fixed runtimeException cannot be thrown when destination path i...

...sn't writeable and added phpUnit tests for the expected exceptions to be thrown