@@ -414,27 +414,6 @@ public function testDuplicateClaims() {
414414 $ this ->assertNull ( $ list ->getClaimWithGuid ( $ secondClaim ->getGuid () ) );
415415 }
416416
417- public function testGetHash () {
418- $ claimsA = new Claims ();
419- $ claimsB = new Claims ();
420- $ claim1 = $ this ->makeClaim ( new PropertyNoValueSnak ( new PropertyId ( 'P15 ' ) ) );
421- $ claim2 = $ this ->makeClaim ( new PropertyNoValueSnak ( new PropertyId ( 'P16 ' ) ) );
422-
423- $ this ->assertEquals ( $ claimsA ->getHash (), $ claimsB ->getHash (), 'empty list ' );
424-
425- $ claimsA ->addClaim ( $ claim1 );
426- $ claimsB ->addClaim ( $ claim2 );
427- $ this ->assertNotEquals ( $ claimsA ->getHash (), $ claimsB ->getHash (), 'different content ' );
428-
429- $ claimsA ->addClaim ( $ claim2 );
430- $ claimsB ->addClaim ( $ claim1 );
431- $ this ->assertNotEquals ( $ claimsA ->getHash (), $ claimsB ->getHash (), 'different order ' );
432-
433- $ claimsA ->removeClaim ( $ claim1 );
434- $ claimsB ->removeClaim ( $ claim1 );
435- $ this ->assertEquals ( $ claimsA ->getHash (), $ claimsB ->getHash (), 'same content ' );
436- }
437-
438417 public function testIterator () {
439418 $ expected = array (
440419 'TESTCLAIM1 ' => $ this ->makeClaim ( new PropertyNoValueSnak ( new PropertyId ( 'P42 ' ) ), 'testclaim1 ' ),
@@ -449,17 +428,4 @@ public function testIterator() {
449428 $ this ->assertSame ( $ expected , $ actual );
450429 }
451430
452- public function testIsEmpty () {
453- $ claims = new Claims ();
454- $ claim1 = $ this ->makeClaim ( new PropertyNoValueSnak ( new PropertyId ( 'P15 ' ) ) );
455-
456- $ this ->assertTrue ( $ claims ->isEmpty () );
457-
458- $ claims ->addClaim ( $ claim1 );
459- $ this ->assertFalse ( $ claims ->isEmpty () );
460-
461- $ claims ->removeClaim ( $ claim1 );
462- $ this ->assertTrue ( $ claims ->isEmpty () );
463- }
464-
465431}
0 commit comments