Skip to content

Commit 3c7635e

Browse files
PratikshaPratiksha
authored andcommitted
DEBUG
1 parent 6081e2d commit 3c7635e

9 files changed

+14
-13
lines changed

psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
>
1111
<projectFiles>
1212
<directory name="src" />
13+
<directory name="tests" />
1314
<ignoreFiles>
1415
<directory name="vendor" />
1516
</ignoreFiles>

tests/Integration/Neo4jOGMTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Neo4j\QueryAPI\OGM;
1111
use PHPUnit\Framework\Attributes\DataProvider;
1212
use PHPUnit\Framework\TestCase;
13-
13+
/** @psalm-suppress UnusedClass */
1414
class Neo4jOGMTest extends TestCase
1515
{
1616
private OGM $ogm;
@@ -374,7 +374,7 @@ public function testWithPath()
374374
$this->assertEquals('A', $path->getNodes()[0]->getProperties()['name']['_value']);
375375
$this->assertEquals('B', $path->getNodes()[1]->getProperties()['name']['_value']);
376376
}
377-
377+
/** @psalm-suppress PossiblyUnusedParam */
378378
#[DataProvider('integerDataProvider')] public function testWithInteger(string $query, array $parameters, int $expectedResult): void
379379
{
380380
$actual = $this->ogm->map([
@@ -387,7 +387,7 @@ public function testWithPath()
387387

388388

389389

390-
390+
/** @psalm-suppress PossiblyUnusedParam */
391391

392392
#[DataProvider('nullDataProvider')]
393393
public function testWithNull(string $query, array $parameters, ?string $expectedResult): void
@@ -398,7 +398,7 @@ public function testWithNull(string $query, array $parameters, ?string $expected
398398
]);
399399
$this->assertEquals($expectedResult, $actual);
400400
}
401-
401+
/** @psalm-suppress PossiblyUnusedParam */
402402
#[DataProvider('booleanDataProvider')]
403403
public function testWithBoolean(string $query, array $parameters, ?bool $expectedResult): void
404404
{
@@ -408,7 +408,7 @@ public function testWithBoolean(string $query, array $parameters, ?bool $expecte
408408
]);
409409
$this->assertEquals($expectedResult, $actual);
410410
}
411-
411+
/** @psalm-suppress PossiblyUnusedParam */
412412
#[DataProvider('stringDataProvider')]
413413
public function testWithString(string $query, array $parameters, ?string $expectedResult): void
414414
{

tests/Integration/Neo4jQueryAPIIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use PHPUnit\Framework\TestCase;
2121
use Neo4j\QueryAPI\Transaction;
2222
use Psr\Http\Client\RequestExceptionInterface;
23-
23+
/** @psalm-suppress UnusedClass */
2424
class Neo4jQueryAPIIntegrationTest extends TestCase
2525
{
2626
private Neo4jQueryAPI $api;

tests/Integration/Neo4jTransactionIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use GuzzleHttp\Exception\GuzzleException;
88
use Neo4j\QueryAPI\Neo4jQueryAPI;
99
use PHPUnit\Framework\TestCase;
10-
10+
/** @psalm-suppress UnusedClass */
1111
class Neo4jTransactionIntegrationTest extends TestCase
1212
{
1313
private Neo4jQueryAPI $api;

tests/Unit/AuthenticationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Neo4j\QueryAPI\Objects\Authentication;
66
use PHPUnit\Framework\TestCase;
7-
7+
/** @psalm-suppress UnusedClass */
88
class AuthenticationTest extends TestCase
99
{
1010
public function testBearerToken(): void

tests/Unit/Neo4jExceptionUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Exception;
66
use PHPUnit\Framework\TestCase;
77
use Neo4j\QueryAPI\Exception\Neo4jException;
8-
8+
/** @psalm-suppress UnusedClass */
99
class Neo4jExceptionUnitTest extends TestCase
1010
{
1111
/**

tests/Unit/Neo4jQueryAPIUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Neo4j\QueryAPI\Results\ResultRow;
1717
use Neo4j\QueryAPI\AuthenticateInterface;
1818
use PHPUnit\Framework\TestCase;
19-
19+
/** @psalm-suppress UnusedClass */
2020
class Neo4jQueryAPIUnitTest extends TestCase
2121
{
2222
protected string $address;

tests/Unit/Neo4jRequestFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use GuzzleHttp\Psr7\Request;
1111
use GuzzleHttp\Psr7\Utils;
1212
use Neo4j\QueryAPI\Neo4jRequestFactory;
13-
13+
/** @psalm-suppress UnusedClass */
1414
class Neo4jRequestFactoryTest extends TestCase
1515
{
1616
private $psr17Factory;

tests/Unit/ResultRowTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use OutOfBoundsException;
77
use BadMethodCallException;
88
use PHPUnit\Framework\TestCase;
9-
9+
/** @psalm-suppress UnusedClass */
1010
class ResultRowTest extends TestCase
1111
{
1212
public function testArrayAccessGet(): void
@@ -20,7 +20,7 @@ public function testArrayAccessGet(): void
2020
$this->assertEquals('Bob', $row['name']);
2121
$this->assertEquals(20, $row['age']);
2222
}
23-
23+
/** @psalm-suppress UnusedVariable */
2424
public function testArrayAccessInvalidKey(): void
2525
{
2626
$row = new ResultRow([

0 commit comments

Comments
 (0)