adapt tests to symfony/symfony#10287