Beispiel #1
0
 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();
 }
Beispiel #2
0
 /**
  * @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');
 }