public function testSetState() { $expected = new ezcPersistentRelationCollection(); $expected['foo'] = new ezcPersistentOneToManyRelation('src', 'dst'); $this->assertEquals($expected, ezcPersistentRelationCollection::__set_state(array('foo' => new ezcPersistentOneToManyRelation('src', 'dst')))); }