Fixed broken unit tests, event triggers passing methods instead of vars

http://php.net/manual/en/language.references.pass.php