We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2cfcaee + f116cd5 commit 942d83bCopy full SHA for 942d83b
1 file changed
tests/unit/Statement/StatementTest.php
@@ -416,4 +416,18 @@ private function newStatement() {
416
return $statement;
417
}
418
419
+ public function testHashesOfDifferentStatementsAreNotTheSame() {
420
+ $this->assertNotSame(
421
+ ( new Statement( new PropertyNoValueSnak( 1 ) ) )->getHash(),
422
+ ( new Statement( new PropertyNoValueSnak( 2 ) ) )->getHash()
423
+ );
424
+ }
425
+
426
+ public function testHashesOfEqualStatementsAreTheSame() {
427
+ $this->assertSame(
428
429
+ ( new Statement( new PropertyNoValueSnak( 1 ) ) )->getHash()
430
431
432
433
0 commit comments