Lines Matching refs:stack
16 $this->stack = $this->getMockForTrait('Sabre\\Xml\\ContextStackTrait');
22 $this->stack->contextUri = '/foo/bar';
23 $this->stack->elementMap['{DAV:}foo'] = 'Bar';
24 $this->stack->namespaceMap['DAV:'] = 'd';
26 $this->stack->pushContext();
28 $this->assertEquals('/foo/bar', $this->stack->contextUri);
29 $this->assertEquals('Bar', $this->stack->elementMap['{DAV:}foo']);
30 $this->assertEquals('d', $this->stack->namespaceMap['DAV:']);
32 $this->stack->contextUri = '/gir/zim';
33 $this->stack->elementMap['{DAV:}foo'] = 'newBar';
34 $this->stack->namespaceMap['DAV:'] = 'dd';
36 $this->stack->popContext();
38 $this->assertEquals('/foo/bar', $this->stack->contextUri);
39 $this->assertEquals('Bar', $this->stack->elementMap['{DAV:}foo']);
40 $this->assertEquals('d', $this->stack->namespaceMap['DAV:']);