From ecd80296f1902a1ab0e59182c6f9374816cf03fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Baptiste=20=22Talus=22=20Clavi=C3=A9?= Date: Fri, 15 Nov 2013 18:07:29 +0100 Subject: [PATCH] Remove the ArraySnapshot isComparable method Let the parent isComparable do the work --- src/Totem/Snapshot/ArraySnapshot.php | 10 ---------- test/Totem/Snapshot/ArraySnapshotTest.php | 1 - 2 files changed, 11 deletions(-) diff --git a/src/Totem/Snapshot/ArraySnapshot.php b/src/Totem/Snapshot/ArraySnapshot.php index 5992cd3..fdfbb61 100644 --- a/src/Totem/Snapshot/ArraySnapshot.php +++ b/src/Totem/Snapshot/ArraySnapshot.php @@ -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); - } } diff --git a/test/Totem/Snapshot/ArraySnapshotTest.php b/test/Totem/Snapshot/ArraySnapshotTest.php index 4c87958..7db5894 100644 --- a/test/Totem/Snapshot/ArraySnapshotTest.php +++ b/test/Totem/Snapshot/ArraySnapshotTest.php @@ -36,7 +36,6 @@ public function providerCompare() ->getMock(); return [[new ArraySnapshot([]), true], - [new ArraySnapshot(['foo']), false], [$snapshot, false]]; }