Use self for php 5.3
Remove attempted suffix, tempnam creates the file
Don't attempt to autoload class, breaks instance mocks