added tests
This commit is contained in:
10
tests/bootstrap.php
Normal file
10
tests/bootstrap.php
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user