InfluxPHP/tests/DBTest.php
César D. Rodas 73ac9315e7 added tests
2013-11-12 14:36:14 -03:00

21 lines
419 B
PHP

<?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");
}
}