Skip to content

Commit a4d171f

Browse files
PratikshaPratiksha
authored andcommitted
DEBUG
1 parent 147b17a commit a4d171f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

tests/Unit/Neo4jQueryAPINewUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function testHandleRequestExceptionThrowsNeo4jException(): void
8282
$this->invokeMethod($this->api, 'handleRequestException', [$mockException]);
8383
}
8484

85-
private function invokeMethod($object, string $methodName, array $parameters = []):array
85+
private function invokeMethod($object, string $methodName, array $parameters = []): array
8686
{
8787
$reflection = new \ReflectionClass(get_class($object));
8888
$method = $reflection->getMethod($methodName);

tests/Unit/OGMUnitTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,37 @@ public function testMapInteger(): void
2828
$this->assertSame(42, $this->ogm->map($data));
2929
}
3030

31-
public function testMapFloat():void
31+
public function testMapFloat(): void
3232
{
3333
$data = ['$type' => 'Float', '_value' => 3.14];
3434
$this->assertSame(3.14, $this->ogm->map($data));
3535
}
3636

37-
public function testMapString():void
37+
public function testMapString(): void
3838
{
3939
$data = ['$type' => 'String', '_value' => 'hello'];
4040
$this->assertSame('hello', $this->ogm->map($data));
4141
}
4242

43-
public function testMapBoolean():void
43+
public function testMapBoolean(): void
4444
{
4545
$data = ['$type' => 'Boolean', '_value' => true];
4646
$this->assertTrue($this->ogm->map($data));
4747
}
4848

49-
public function testMapNull():void
49+
public function testMapNull(): void
5050
{
5151
$data = ['$type' => 'Null', '_value' => null];
5252
$this->assertNull($this->ogm->map($data));
5353
}
5454

55-
public function testMapArray():void
55+
public function testMapArray(): void
5656
{
5757
$data = ['$type' => 'List', '_value' => [['$type' => 'Integer', '_value' => 1], ['$type' => 'Integer', '_value' => 2]]];
5858
$this->assertSame([1, 2], $this->ogm->map($data));
5959
}
6060

61-
public function testMapNode():void
61+
public function testMapNode(): void
6262
{
6363
$data = [
6464
'$type' => 'Node',
@@ -71,7 +71,7 @@ public function testMapNode():void
7171
$this->assertSame(['name' => 'Alice'], $result->getProperties());
7272
}
7373

74-
public function testMapRelationship():void
74+
public function testMapRelationship(): void
7575
{
7676
$data = [
7777
'$type' => 'Relationship',
@@ -95,7 +95,7 @@ public function testMapPoint(): void
9595
$this->assertSame(4326, $result->getSrid());
9696
}
9797

98-
public function testParseWKT():void
98+
public function testParseWKT(): void
9999
{
100100
$wkt = 'SRID=4326;POINT (10 20 30)';
101101
$result = OGM::parseWKT($wkt);
@@ -107,13 +107,13 @@ public function testParseWKT():void
107107
$this->assertSame(4326, $result->getSrid());
108108
}
109109

110-
public function testInvalidWKTThrowsException():void
110+
public function testInvalidWKTThrowsException(): void
111111
{
112112
$this->expectException(InvalidArgumentException::class);
113113
OGM::parseWKT('Invalid WKT String');
114114
}
115115

116-
public function testInvalidPointFormatThrowsException():void
116+
public function testInvalidPointFormatThrowsException(): void
117117
{
118118
$this->expectException(InvalidArgumentException::class);
119119
$this->ogm->map(['$type' => 'Point', '_value' => 'Invalid Point Format']);

0 commit comments

Comments
 (0)