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