diff --git a/tests/PhpOrient/SQLCommandsTest.php b/tests/PhpOrient/SQLCommandsTest.php index fe5353e..89fe2f4 100644 --- a/tests/PhpOrient/SQLCommandsTest.php +++ b/tests/PhpOrient/SQLCommandsTest.php @@ -186,7 +186,10 @@ public function testNullValueHandling(){ $record = $client->recordLoad($tmp->getRid())[0]; - print_r($record->getOData()); + $this->assertEquals( 'record di prova', $record->getOData()['aString'] ); + $this->assertEquals( null, $record->getOData()['prova1'] ); + +// print_r($record->getOData()); } catch (\Exception $e) { echo $e . "\n"; @@ -204,8 +207,13 @@ public function testWrongClusterID(){ * @var Record[] $records */ foreach ($records as $k => $rec) { + + if ( $client->getTransport()->getProtocolVersion() < 26 ) + $this->assertEquals( $k +1, $rec->getRid()->position ); + else + $this->assertEquals( $k, $rec->getRid()->position ); + $this->assertEquals( -2, $rec->getRid()->cluster ); - $this->assertEquals( $k, $rec->getRid()->position ); } }