From 6454c1da9bcf64d53ca34eac8fea1b7f325987c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Fabr=C3=A9gat?= Date: Tue, 10 Dec 2024 16:31:07 -0800 Subject: [PATCH] phpunit config --- .gitignore | 3 ++- phpunit.xml | 28 ++++++++++++++++++++++++++++ tests/bootstrap.php | 2 +- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 phpunit.xml diff --git a/.gitignore b/.gitignore index 67d0443..61fa81f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /.idea /vendor .DS_Store -/.env.test \ No newline at end of file +/.env.test +/.phpunit.cache \ No newline at end of file diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..800883c --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,28 @@ + + + + + + + + tests + + + + + + + + + + + diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 5622550..97d4dde 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -10,5 +10,5 @@ // Load .env file if (file_exists(__DIR__.'/../.env.test')) { - Dotenv\Dotenv::createImmutable([__DIR__])->load(); + Dotenv\Dotenv::createImmutable(__DIR__.'/..', '.env.test')->load(); } \ No newline at end of file