-
- /**
- * Test that when a ping is received, a Phergie_Event_Command::TYPE_PONG
- * is set to the handler
- *
- * @event Phergie_Event_Command::TYPE_PING
- */
- public function testOnPingResponseArguement()
- {
- $this->plugin->onPing();
- $this->assertHasEvent(Phergie_Event_Command::TYPE_PONG);
- $events = $this->getResponseEvents(Phergie_Event_Command::TYPE_PONG);
- $this->assertTrue(count($events) === 1, 'Assert that only one pong is emitted');
- $this->assertEventEmitter(current($events),
- $this->plugin,
- 'Assert that the tested plugin emitted the event');
-
- }
-