Browse Source

unittest enabled, toolkit installed

tags/0.4
Paul Rock 7 years ago
parent
commit
f247a335ec
  1. 5
      composer.json
  2. 21
      phpunit.xml

5
composer.json

@ -14,6 +14,9 @@
"RouterOS\\": "./src/" "RouterOS\\": "./src/"
} }
}, },
"autoload-dev": {
"psr-4": { "RouterOS\\Tests\\": "./tests/" }
},
"authors": [ "authors": [
{ {
"name": "Paul Rock", "name": "Paul Rock",
@ -27,6 +30,6 @@
"ext-sockets": "*" "ext-sockets": "*"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^6.0"
"phpunit/phpunit": "^7.0"
} }
} }

21
phpunit.xml

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="RouterOS API on PHP tests">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>
</phpunit>
Loading…
Cancel
Save