added tests

This commit is contained in:
César D. Rodas
2013-11-12 14:36:14 -03:00
parent 5f96d8bc48
commit 73ac9315e7
2 changed files with 30 additions and 0 deletions

10
tests/bootstrap.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
require __DIR__ . "/../vendor/autoload.php";
$client = new \crodas\InfluxPHP\Client;
foreach ($client->getDatabases() as $db) {
if (preg_match("/^test_/", $db->getName())) {
$db->drop();
}
}