truncate blob before saving contents. fix #9
update phpunit to version 4