File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717* Removed ` Claims::getGuids `
1818* Removed ` Claims::equals ` (and ` Claims ` no longer implements ` Comparable ` )
1919* Removed ` Claims::getHash ` (and ` Claims ` no longer implements ` Hashable ` )
20+ * Removed ` Claims::isEmpty ` (you can use ` StatementList::isEmpty ` instead)
2021
2122## Version 2.6.0 (2015-03-08)
2223
Original file line number Diff line number Diff line change @@ -279,11 +279,4 @@ public function offsetUnset( $guid ) {
279279 parent ::offsetUnset ( $ key );
280280 }
281281
282- /**
283- * @return bool
284- */
285- public function isEmpty () {
286- return !$ this ->getIterator ()->valid ();
287- }
288-
289282}
Original file line number Diff line number Diff line change @@ -428,17 +428,4 @@ public function testIterator() {
428428 $ this ->assertSame ( $ expected , $ actual );
429429 }
430430
431- public function testIsEmpty () {
432- $ claims = new Claims ();
433- $ claim1 = $ this ->makeClaim ( new PropertyNoValueSnak ( new PropertyId ( 'P15 ' ) ) );
434-
435- $ this ->assertTrue ( $ claims ->isEmpty () );
436-
437- $ claims ->addClaim ( $ claim1 );
438- $ this ->assertFalse ( $ claims ->isEmpty () );
439-
440- $ claims ->removeClaim ( $ claim1 );
441- $ this ->assertTrue ( $ claims ->isEmpty () );
442- }
443-
444431}
You can’t perform that action at this time.
0 commit comments