/** * Checks if the other task has equal scope * * @param Task $other Other task * @return bool */ public function hasEqualScope(self $other) { return $this->scope->equals($other->scope); }
public function testSerialize() { $s = new Scope(array("foo", "bar", "baz")); $t = new Scope($s->toArray()); $this->assertTrue($t->equals($s)); }