InfluxPHP/tests/DBTest.php

21 lines
419 B
PHP
Raw Normal View History

2013-11-12 17:36:14 +00:00
<?php
use crodas\InfluxPHP\Client;
class DBTest extends \phpunit_framework_testcase
{
public function testCreate()
{
$client = new Client;
return $client->createDatabase("test_foobar");
}
/**
* @expectedException RuntimeException
*/
public function testCreateException()
{
$client = new Client;
return $client->createDatabase("test_foobar");
}
}