コード例 #1
0
ファイル: CreateTest.php プロジェクト: Anei/tarantool-php
 public function test_01_create_test_ping_and_close()
 {
     $c = new Tarantool('localhost', $this->port);
     $c->connect();
     $c->connect();
     $this->assertTrue($c->ping());
     $c->close();
     $this->assertTrue($c->ping());
     $c->close();
     $c->close();
 }
コード例 #2
0
ファイル: CreateTest.php プロジェクト: dzmitro/tarantool-php
 /**
  * @expectedException Exception
  * @expectedExceptionMessage Query error
  */
 public function test_06_bad_cridentials()
 {
     $c = new Tarantool('localhost', self::$port);
     $c->connect();
     $this->assertTrue($c->ping());
     $c->authenticate('test', 'bad_password');
 }