Add unit test preparation
authorChristian Weiske <cweiske@cweiske.de>
Thu, 5 Mar 2020 20:26:36 +0000 (21:26 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 5 Mar 2020 20:26:36 +0000 (21:26 +0100)
phpunit.xml [new file with mode: 0644]
tests/bootstrap.php [new file with mode: 0644]

diff --git a/phpunit.xml b/phpunit.xml
new file mode 100644 (file)
index 0000000..526ab54
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<phpunit bootstrap="tests/bootstrap.php">
+ <testsuites>
+  <testsuite name="unit">
+   <directory>tests</directory>
+  </testsuite>
+ </testsuites>
+</phpunit>
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
new file mode 100644 (file)
index 0000000..7bc89e6
--- /dev/null
@@ -0,0 +1,4 @@
+<?php
+require_once __DIR__ . '/../src/init.php';
+?>
+