Man accused of attacking, attempting to pour petrol on pet dog

He was 'lonely' and sought out the pet's presence, a defence lawyer said.