Mariano Rajoy on Wednesday denied any knowledge of an illegal financing scheme within his party as he became the first sitting prime minister in Spain to give evidence in a trial, prompting calls for his resignation.