public function testSerialize() { $s = new Scope(array('foo', 'bar', 'baz')); $t = new Scope($s->toArray()); $this->assertTrue($t->equals($s)); }