From 3eb8f0c4cf06c1b526eef5481e4793ec78a205ec Mon Sep 17 00:00:00 2001 From: David Maus <maus@hab.de> Date: Tue, 12 May 2015 15:05:26 +0200 Subject: [PATCH] Add PHPUnit configuration --- phpunit.xml | 6 ++++++ tests/bootstrap.php | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 phpunit.xml create mode 100644 tests/bootstrap.php diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..553e80b --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<phpunit bootstrap="tests/bootstrap.php" strict="true"> + <testsuite name="Unit tests"> + <directory suffix="Test.php">tests/unit-tests</directory> + </testsuite> +</phpunit> diff --git a/tests/bootstrap.php b/tests/bootstrap.php new file mode 100644 index 0000000..3e7ffff --- /dev/null +++ b/tests/bootstrap.php @@ -0,0 +1,7 @@ +<?php + +if ($autoload = stream_resolve_include_path('vendor/autoload.php')) { + require($autoload); +} + +define('APP_TESTDIR', __DIR__); \ No newline at end of file -- GitLab