Skip to content

Commit 9c84675

Browse files
PratikshaPratiksha
authored andcommitted
fixed the CI and Psalm show-infor errors
1 parent 5a89641 commit 9c84675

10 files changed

+18
-17
lines changed

tests/Unit/Authentication/BasicAuthenticationUnitTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ final class BasicAuthenticationUnitTest extends TestCase
1212
private BasicAuthentication $auth;
1313
private MockObject $requestMock;
1414

15+
#[\Override]
1516
protected function setUp(): void
1617
{
1718
$this->auth = new BasicAuthentication('testUser', 'testPass');

tests/Unit/Authentication/BearerAuthenticationUnitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
use PHPUnit\Framework\TestCase;
77
use Psr\Http\Message\RequestInterface;
88

9-
class BearerAuthenticationUnitTest extends TestCase
9+
final class BearerAuthenticationUnitTest extends TestCase
1010
{
1111
private BearerAuthentication $auth;
1212
private RequestInterface $requestMock;
13-
13+
#[\Override]
1414
protected function setUp(): void
1515
{
1616
$this->auth = new BearerAuthentication('testToken');

tests/Unit/Authentication/NoAuthUnitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
use PHPUnit\Framework\TestCase;
77
use Psr\Http\Message\RequestInterface;
88

9-
class NoAuthUnitTest extends TestCase
9+
final class NoAuthUnitTest extends TestCase
1010
{
1111
private NoAuth $auth;
1212
private RequestInterface $requestMock;
13-
13+
#[\Override]
1414
protected function setUp(): void
1515
{
1616
$this->auth = new NoAuth();

tests/Unit/objects/AuthenticationUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Neo4j\QueryAPI\Authentication\NoAuth;
99
use PHPUnit\Framework\TestCase;
1010

11-
class AuthenticationUnitTest extends TestCase
11+
final class AuthenticationUnitTest extends TestCase
1212
{
1313
public function testBasicReturnsBasicAuthenticationInstance(): void
1414
{

tests/Unit/objects/BookmarksUnitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
use Neo4j\QueryAPI\Objects\Bookmarks;
66
use PHPUnit\Framework\TestCase;
77

8-
class BookmarksUnitTest extends TestCase
8+
final class BookmarksUnitTest extends TestCase
99
{
1010
private Bookmarks $bookmarks;
11-
11+
#[\Override]
1212
protected function setUp(): void
1313
{
1414
$this->bookmarks = new Bookmarks(['bookmark1', 'bookmark2']);

tests/Unit/objects/NodeUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class NodeUnitTest extends TestCase
99
{
1010
private Node $node;
11-
11+
#[\Override]
1212
protected function setUp(): void
1313
{
1414
$this->node = new Node(['Label1', 'Label2'], ['key1' => 'value1', 'key2' => 42]);

tests/Unit/objects/PathUnitTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
use Neo4j\QueryAPI\Objects\Relationship;
88
use PHPUnit\Framework\TestCase;
99

10-
class PathUnitTest extends TestCase
10+
final class PathUnitTest extends TestCase
1111
{
1212
private Path $path;
1313
private array $nodes;
1414
private array $relationships;
15-
15+
#[\Override]
1616
protected function setUp(): void
1717
{
1818
$this->nodes = [
@@ -21,7 +21,7 @@ protected function setUp(): void
2121
];
2222

2323
$this->relationships = [
24-
new Relationship('KNOWS', ['since' => 2020], $this->nodes[0], $this->nodes[1])
24+
new Relationship('KNOWS', ['since' => 2020])
2525
];
2626

2727
$this->path = new Path($this->nodes, $this->relationships);

tests/Unit/objects/PersonUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
use Neo4j\QueryAPI\Objects\Person;
66
use PHPUnit\Framework\TestCase;
77

8-
class PersonUnitTest extends TestCase
8+
final class PersonUnitTest extends TestCase
99
{
1010
}

tests/Unit/objects/PointUnitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
use Neo4j\QueryAPI\Objects\Point;
66
use PHPUnit\Framework\TestCase;
77

8-
class PointUnitTest extends TestCase
8+
final class PointUnitTest extends TestCase
99
{
1010
private Point $point;
11-
11+
#[\Override]
1212
protected function setUp(): void
1313
{
1414
$this->point = new Point(1.5, 2.5, 3.5, 4326);

tests/Unit/objects/RelationshipUnitTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
namespace Neo4j\QueryAPI\Tests\Unit\Objects;
3+
namespace Neo4j\QueryAPI\Tests\Unit\objects;
44

55
use Neo4j\QueryAPI\Objects\Relationship;
66
use PHPUnit\Framework\TestCase;
77

8-
class RelationshipUnitTest extends TestCase
8+
final class RelationshipUnitTest extends TestCase
99
{
1010
private Relationship $relationship;
11-
11+
#[\Override]
1212
protected function setUp(): void
1313
{
1414
$this->relationship = new Relationship('FRIENDS_WITH', ['since' => 2020]);

0 commit comments

Comments
 (0)