Add PHPUnit to dev dependencies
Move polyglot event to separate class