Skip to content

Commit d4d7e3a

Browse files
committed
moved integration test to specific autoloader
1 parent 7904dff commit d4d7e3a

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/integration-test-3.5.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ jobs:
3939
with:
4040
time: 60s
4141
- name: Run unit tests
42-
run: echo "NEO4J_CONNECTIONS=bolt://neo4j:test@localhost,neo4j://neo4j:test@localhost,http://neo4j:test@localhost" >> .env && php vendor/bin/phpunit --testsuite Integration
42+
run: php vendor/bin/phpunit --testsuite Integration --bootstrap tests/bootstrap_override_with_dotenv.php

.github/workflows/integration-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ jobs:
4646
php_version: 7.4
4747
version: 2
4848
- name: Run unit tests
49-
run: echo "NEO4J_CONNECTIONS=bolt://neo4j:test@localhost,neo4j://neo4j:test@localhost,http://neo4j:test@localhost" >> .env && php vendor/bin/phpunit --testsuite Integration
49+
run: php vendor/bin/phpunit --testsuite Integration --bootstrap tests/bootstrap_override_with_dotenv.php
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Neo4j PHP Client and Driver package.
5+
*
6+
* (c) Nagels <https://nagels.tech>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
use Dotenv\Dotenv;
13+
14+
require __DIR__.'/../vendor/autoload.php';
15+
16+
/** @psalm-suppress UncaughtThrowInGlobalScope */
17+
Dotenv::createImmutable(__DIR__.'/../')->load();

0 commit comments

Comments
 (0)