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