An alleged murderer has denied arming himself with a machete and knife before attacking a man in the street.