Skip to content

Commit e0aa4e6

Browse files
committed
Read dotenv for tests.
1 parent b260c34 commit e0aa4e6

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<phpunit bootstrap="vendor/autoload.php">
1+
<phpunit bootstrap="tests/bootstrap.php">
22
<testsuites>
33
<testsuite name="all">
44
<directory>tests/</directory>

tests/bootstrap.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
define('ROOT_DIR', dirname(__DIR__));
3+
4+
require ROOT_DIR . '/vendor/autoload.php';
5+
6+
\Dotenv\Dotenv::createUnsafeImmutable(ROOT_DIR)->safeLoad();

0 commit comments

Comments
 (0)