Symfony 2.4 compatibility

The code itself was already working, just needing an updated composer.json, but in order to verify that I also updated the test suite to run on newer versions of Symfony (in this case, 2.4, though they can't have worked on 2.1 either).