Skip to content

Commit 4d87af9

Browse files
committed
merged main into ssl
1 parent 9571d7f commit 4d87af9

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

tests/Integration/BasicDriverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function getConnections(): array
2828
/** @var string|mixed $connections */
2929
$connections = $_ENV['NEO4J_CONNECTIONS'] ?? false;
3030
if (!is_string($connections)) {
31-
Dotenv::createImmutable(__DIR__ . '/../../')->load();
31+
Dotenv::createImmutable(__DIR__.'/../../')->load();
3232
/** @var string|mixed $connections */
3333
$connections = $_ENV['NEO4J_CONNECTIONS'] ?? false;
3434
if (!is_string($connections)) {

tests/Integration/BoltDriverIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private function getBoltUri(): ?UriInterface
3636
/** @var string|mixed $connections */
3737
$connections = $_ENV['NEO4J_CONNECTIONS'] ?? false;
3838
if (!is_string($connections)) {
39-
Dotenv::createImmutable(__DIR__ . '/../../')->load();
39+
Dotenv::createImmutable(__DIR__.'/../../')->load();
4040
/** @var string|mixed $connections */
4141
$connections = $_ENV['NEO4J_CONNECTIONS'] ?? false;
4242
if (!is_string($connections)) {

tests/Integration/ClientBuilderTest.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private function getBoltUri(): ?string
2626
/** @var string|mixed $connections */
2727
$connections = $_ENV['NEO4J_CONNECTIONS'] ?? false;
2828
if (!is_string($connections)) {
29-
Dotenv::createImmutable(__DIR__ . '/../../')->load();
29+
Dotenv::createImmutable(__DIR__.'/../../')->load();
3030
/** @var string|mixed $connections */
3131
$connections = $_ENV['NEO4J_CONNECTIONS'] ?? false;
3232
if (!is_string($connections)) {
@@ -45,35 +45,38 @@ private function getBoltUri(): ?string
4545

4646
public function testBoltSetupWithScheme(): void
4747
{
48-
if ($this->getBoltUri() === null) {
48+
$uri = $this->getBoltUri();
49+
if ($uri === null) {
4950
self::markTestSkipped('No bolt uri provided');
5051
}
5152

52-
$client = ClientBuilder::create()->addBoltConnection('bolt', $this->getBoltUri())->build();
53+
$client = ClientBuilder::create()->addBoltConnection('bolt', $uri)->build();
5354
$tsx = $client->beginTransaction();
5455
self::assertTrue(true);
5556
$tsx->rollback();
5657
}
5758

5859
public function testBoltSetupWithoutPort(): void
5960
{
60-
if ($this->getBoltUri() === null) {
61+
$uri = $this->getBoltUri();
62+
if ($uri === null) {
6163
self::markTestSkipped('No bolt uri provided');
6264
}
6365

64-
$client = ClientBuilder::create()->addBoltConnection('bolt', $this->getBoltUri())->build();
66+
$client = ClientBuilder::create()->addBoltConnection('bolt', $uri)->build();
6567
$tsx = $client->beginTransaction();
6668
self::assertTrue(true);
6769
$tsx->rollback();
6870
}
6971

7072
public function testBoltSetupWrongScheme(): void
7173
{
72-
if ($this->getBoltUri() === null) {
74+
$uri = $this->getBoltUri();
75+
if ($uri === null) {
7376
self::markTestSkipped('No bolt uri provided');
7477
}
7578

76-
$client = ClientBuilder::create()->addBoltConnection('bolt', $this->getBoltUri())->build();
79+
$client = ClientBuilder::create()->addBoltConnection('bolt', $uri)->build();
7780
$tsx = $client->beginTransaction();
7881
self::assertTrue(true);
7982
$tsx->rollback();

tests/Integration/EnvironmentAwareIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected static function buildConnections(): array
8888
{
8989
$connections = $_ENV['NEO4J_CONNECTIONS'] ?? false;
9090
if (!is_string($connections)) {
91-
Dotenv::createImmutable(__DIR__ . '/../../')->load();
91+
Dotenv::createImmutable(__DIR__.'/../../')->load();
9292
/** @var string|mixed $connections */
9393
$connections = $_ENV['NEO4J_CONNECTIONS'] ?? false;
9494
if (!is_string($connections)) {

0 commit comments

Comments
 (0)