public function isIdentical(self $tags) { return $this->toArray() == $tags->toArray(); }
public function testIsNotIdentical() { $modelA = new Tags(['Foo' => 'Bar']); $modelB = new Tags(['Baz' => 'Qux']); $this->assertFalse($modelA->isIdentical($modelB)); }