/** * @test */ public function it_gets_properties() { $jabberId = new JabberId('42_1337@chat.hipchat.com/bot'); $connection = new Connection($jabberId, 'leetbot', '1337b0t', 'chat.hipchat.com', 5222); $this->assertSame($jabberId, $connection->getJabberId()); $this->assertEquals('leetbot', $connection->getNickname()); $this->assertEquals('1337b0t', $connection->getPassword()); $this->assertEquals('chat.hipchat.com', $connection->getHost()); }