Lines Matching refs:root
105 $root = new SUT(),
108 $oldCountChildren = count(iterator_to_array($root->getIterator()))
110 ->when($result = $root->offsetSet($name, $node))
112 ->integer(count(iterator_to_array($root->getIterator())))
114 ->object($root[$name])
121 ->given($root = new SUT())
122 ->exception(function () use ($root) {
123 $root->offsetSet('foo', null);
131 ->given($root = new SUT())
132 ->exception(function () use ($root) {
133 $root->offsetSet(null, new SUT());
142 $root = new SUT(),
144 $root['foo'] = $child
146 ->when($result = $root->offsetGet('foo'))
155 ->given($root = new SUT())
156 ->exception(function () use ($root) {
157 $root->offsetGet('foo');
166 $root = new SUT(),
168 $root['foo'] = $child
170 ->when($result = $root->offsetExists('foo'))
179 ->given($root = new SUT())
180 ->when($result = $root->offsetExists('foo'))
190 $root = new SUT(),
192 $root['foo'] = $child
194 ->when($result = $root->offsetUnset('foo'))
196 ->boolean($root->offsetExists('foo'))