Update HelperControllerTest.php

Mock validator depending on symfony version