summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpunit.xml7
-rwxr-xr-xrun-tests6
-rw-r--r--run-tests-windoze.bat6
-rw-r--r--tests/bootstrap.php5
4 files changed, 24 insertions, 0 deletions
diff --git a/phpunit.xml b/phpunit.xml
index d8ef2a6..ce02831 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -1,3 +1,10 @@
+<!--
+SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
+SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
+
+SPDX-License-Identifier: CC0-1.0
+-->
+
<phpunit
bootstrap="tests/bootstrap.php"
backupGlobals="false"
diff --git a/run-tests b/run-tests
index 282d0ae..9f881d6 100755
--- a/run-tests
+++ b/run-tests
@@ -1,2 +1,8 @@
#!/usr/bin/env bash
+
+# SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
+# SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
+#
+# SPDX-License-Identifier: CC0-1.0
+
npm run wp-env run phpunit "phpunit -c /var/www/html/wp-content/plugins/giglogadmin/phpunit.xml $*"
diff --git a/run-tests-windoze.bat b/run-tests-windoze.bat
index 7b8c341..107f943 100644
--- a/run-tests-windoze.bat
+++ b/run-tests-windoze.bat
@@ -1,2 +1,8 @@
#!/usr/bin/env bash
+
+REM SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
+REM SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
+REM
+REM SPDX-License-Identifier: CC0-1.0
+
npm run wp-env run phpunit "phpunit -c /var/www/html/wp-content/plugins/giglogadmin/phpunit.xml"
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 0878ff7..b090644 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -3,6 +3,11 @@
* PHPUnit bootstrap file
*
* @package Sample_Plugin
+ *
+ * SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
+ * SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
+ *
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
//$_tests_dir = getenv( 'WP_TESTS_DIR' );