getRoom() 공개 메소드

Get the room the message will be sent to.
public getRoom ( ) : string | integer
리턴 string | integer
예제 #1
0
파일: BasicTest.php 프로젝트: rcrowe/hippy
 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');
 }