Deprecated: Assigning the return value of new by reference is deprecated in /home/bluestat/public_html/source/index.php on line 477
fixture = new BSDbMySqlI();
$this->fixture->connect(TEST_DB_MYSQL_HOST, TEST_DB_MYSQL_USER, TEST_DB_MYSQL_PASSWORD, TEST_DB_MYSQL_DATABASE);
$this->fixture->query("
CREATE TABLE test
(
id int auto_increment,
textstuff varchar(255),
PRIMARY KEY (id)
) Engine=InnoDB
");
}
public function tearDown()
{
$this->fixture->query("DROP TABLE test");
$this->fixture = null;
}
public function testConnect()
{
try
{
$test = new BSDbMySqlI();
$test->connect('localhost', '--invalid user--', '--invalid password--', '--nodatabase--');
$this->fail('exception expected');
}
catch (BSDbException $e)
{}
}
}
?>