Teardown used wrong property
minor #9640 Fixed wrong property in test teardown (fabpot)

This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #9640).

Discussion
----------

Fixed wrong property in test teardown

This PR was submitted on the symfony/EventDispatcher read-only repository and moved automatically to the main Symfony repository (closes symfony/EventDispatcher#2).

Commits
-------

5330603 Teardown used wrong property