Fixed the unit tests on Windows. The /tmp folder doesn't exist so we sho...

These unit tests didn't pass on Windows because the /tmp folder doesn't exist there. We now use the tmp folder as defined by PHP resulting in all unit tests to pass.