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