/** * @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'); }
public function clear() { $this->tarantool->call('queue.truncate', [$this->getOption('space'), $this->getOption('tube_name')]); }
/** * @expectedException Exception * @expectedExceptionMessage Failed to connect. */ public function test_03_create_error_port() { $a = new Tarantool('localhost', 65500); $a->connect(); }
/** * {@inheritdoc} */ public function clear() { $this->tarantool->call('queue.truncate', [$this->space, $this->tubeName]); }