File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <phpunit bootstrap =" tests/bootstrap.php" >
2+ <phpunit bootstrap =" tests/bootstrap.php"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
5+ >
36 <!-- Test Suite Configuration -->
47 <testsuites >
58 <testsuite name =" Application Test Suite" >
Original file line number Diff line number Diff line change 22
33namespace Neo4j \QueryAPI \Tests \Integration ;
44
5+ use Neo4j \QueryAPI \Objects \Path ;
56use Neo4j \QueryAPI \OGM ;
67use PHPUnit \Framework \TestCase ;
78
8- /**
9- * @api
10- */
11- class Neo4jOGMTest extends TestCase
9+ final class Neo4jOGMTest extends TestCase
1210{
13- /** @psalm-suppress PropertyNotSetInConstructor */
1411 private OGM $ ogm ;
1512
1613 #[\Override]
@@ -84,12 +81,11 @@ public function testWithPath(): void
8481 ];
8582
8683 $ path = $ this ->ogm ->map ($ pathData );
87- $ nodes = iterator_to_array ( $ path-> nodes );
84+ $ this -> assertInstanceOf (Path::class, $ path );
8885
89- $ this ->assertCount (2 , $ nodes );
86+ $ this ->assertCount (2 , $ path -> nodes );
9087 $ this ->assertCount (1 , $ path ->relationships );
91- $ this ->assertEquals ('A ' , $ nodes [0 ]->getProperties ()['name ' ]['_value ' ]);
92- $ this ->assertEquals ('B ' , $ nodes [1 ]->getProperties ()['name ' ]['_value ' ]);
88+ $ this ->assertEquals ('A ' , $ path -> nodes [0 ]->getProperties ()['name ' ]['_value ' ]);
89+ $ this ->assertEquals ('B ' , $ path -> nodes [1 ]->getProperties ()['name ' ]['_value ' ]);
9390 }
94-
9591}
You can’t perform that action at this time.
0 commit comments