/** * @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'); }
/** * @expectedException Exception * @expectedExceptionMessage Failed to connect. */ public function test_03_create_error_port() { $a = new Tarantool('localhost', 65500); $a->connect(); }