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