fix test code for HHVM

fix for https://github.com/symfony-cmf/BlockBundle/issues/221