コード例 #1
0
ファイル: RexsterTest.php プロジェクト: atomicjets/rexpro-php
 /**
  * Testing getResponse() without making a previous 
  * socket connection with open()
  * 
  * @return void
  */
 public function testGetResponseWithoutConnection()
 {
     $db = new Connection();
     $result = $db->getResponse();
     $this->assertFalse($result, 'Failed to return false with no established connection');
 }
コード例 #2
0
 /**
  * Testing getResponse() without making a previous 
  * socket connection with open()
  * 
  * @return void
  */
 public function testGetResponseWithoutConnection()
 {
     $db = new Connection();
     $db->setSerializer(Messages::SERIALIZER_JSON);
     $result = $db->getResponse();
     $this->assertFalse($result, 'Failed to return false with no established connection');
 }