mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Adding unit tests
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
||||
# Created by .gitignore support plugin (hsz.mobi)
|
||||
|
||||
vendor/
|
||||
.idea
|
||||
.idea
|
||||
build/
|
||||
|
||||
+6
-1
@@ -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
@@ -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>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace Leaseweb\InfluxDB\Test;
|
||||
|
||||
class ResultSetTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testResultSetFromRaw()
|
||||
{
|
||||
$this->assertTrue(
|
||||
false
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user