Fixes exception missing database

This commit is contained in:
Walter Dal Mut
2014-09-11 15:13:12 +02:00
parent 2aad2b1bb0
commit 08a1b75ea2
+5 -1
View File
@@ -29,7 +29,11 @@ class ClientTest extends \PHPUnit_Framework_TestCase
$options["tcp"]["username"],
$options["tcp"]["password"]
);
$client->deleteDatabase($options["tcp"]["database"]);
try {
$client->deleteDatabase($options["tcp"]["database"]);
} catch (\Exception $e) {
// nothing...
}
$client->createDatabase($options["tcp"]["database"]);
$this->anotherClient = $client;