Adding unit tests

This commit is contained in:
Daniel Martinez
2015-06-17 15:35:42 +02:00
parent d9c2ebde15
commit 0986f43bdd
4 changed files with 49 additions and 2 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
# Created by .gitignore support plugin (hsz.mobi)
vendor/
.idea
.idea
build/
+6 -1
View File
@@ -22,7 +22,12 @@
},
"autoload": {
"psr-4" : {
"Leaseweb\\InfluxDB": "src/Leaseweb/InfluxDB"
"Leaseweb\\InfluxDB\\": "src/Leaseweb/InfluxDB"
}
},
"autoload-dev": {
"psr-4": {
"Leaseweb\\InfluxDB\\Test\\": "tests"
}
}
}
+29
View File
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Influxdb-php tests">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>
+12
View File
@@ -0,0 +1,12 @@
<?php
namespace Leaseweb\InfluxDB\Test;
class ResultSetTest extends \PHPUnit_Framework_TestCase
{
public function testResultSetFromRaw()
{
$this->assertTrue(
false
);
}
}