Пример #1
0
 /**
  * @group history
  */
 public function testHistoryErrorWithWrongKeys()
 {
     $pubnub = new Pubnub(array('publish_key' => 'asdf', 'subscribe_key' => 'qwer'));
     $result = $pubnub->history('channelName');
     $this->assertEquals(400, $result['status']);
     $this->assertEquals(1, $result['error']);
     $this->assertEquals('Invalid Subscribe Key', $result['message']);
 }