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

20
tests/DBTest.php Normal file
View File

@@ -0,0 +1,20 @@
<?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");
}
}