/** * @param EntitySet $other * @return bool */ public function equals(EntitySet $other) { if (count($this->entities) !== count($other->entities)) { return false; } foreach ($this->entities as $entity) { if (!$other->contains($entity)) { return false; } } return true; }
/** * @test * @group entity * * @dataProvider \OpenConext\Value\TestDataProvider::notArray * @expectedException InvalidArgumentException * * @param mixed $notArray */ public function deserialization_requires_an_array($notArray) { EntitySet::deserialize($notArray); }