Simple PHP stream wrapper for testing classes which interact with file functions