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(); }
/** * @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'); }