Exemplo n.º 1
0
 /**
  * Tests getProxyPort
  */
 public function testGetProxyPort()
 {
     $cb = new CodebirdT();
     $this->assertNull($cb->call('_getProxyPort'));
     $cb->setProxy('127.0.0.1', '8888');
     $this->assertEquals('8888', $cb->call('_getProxyPort'));
 }
Exemplo n.º 2
0
 /**
  * Tests getInstance
  */
 public function testGetInstance()
 {
     $cb = CodebirdT::getInstance();
     $this->assertInstanceOf('\\Codebird\\Codebird', $cb);
 }