/** * Tests setConnection(). */ public function testSetConnection() { $connection = $this->getMock('\\Phergie\\Irc\\ConnectionInterface', array(), array(), '', false); $this->event->setConnection($connection); $this->assertSame($connection, $this->event->getConnection()); }