protected function assertEmitsEvent($type, array $args = array()) { $this->events->expects($this->at(0))->method('addEvent')->with($this->plugin, $type, $args); }