rcrowe\Hippy\Tests\Client\BasicTest::testRoom PHP Method

testRoom() public method

public testRoom ( )
    public function testRoom()
    {
        $transport = new Transport(null, null, null);
        $hippy = new Hippy($transport);
        $this->assertNull($hippy->getRoom());
        $hippy->setRoom('general');
        $this->assertEquals($hippy->getRoom(), 'general');
        $transport = new Transport(null, 'chilli', null);
        $hippy = new Hippy($transport);
        $this->assertEquals($hippy->getRoom(), 'chilli');
    }