Skip to content

Commit

Permalink
Remove the ArraySnapshot isComparable method
Browse files Browse the repository at this point in the history
Let the parent isComparable do the work
  • Loading branch information
Taluu committed Nov 15, 2013
1 parent 0048e4c commit ecd8029
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions src/Totem/Snapshot/ArraySnapshot.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,5 @@ public function __construct(array $data)

parent::normalize();
}

/** {@inheritDoc} */
public function isComparable(AbstractSnapshot $snapshot)
{
if (!parent::isComparable($snapshot)) {
return false;
}

return array_keys($snapshot->data) === array_keys($this->data);
}
}

1 change: 0 additions & 1 deletion test/Totem/Snapshot/ArraySnapshotTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public function providerCompare()
->getMock();

return [[new ArraySnapshot([]), true],
[new ArraySnapshot(['foo']), false],
[$snapshot, false]];
}

Expand Down

0 comments on commit ecd8029

Please sign in to comment.