getNamespaces() public method

public getNamespaces ( )
Exemplo n.º 1
0
 public function testGetNamespaces()
 {
     $iterator = new iterators\phpScript();
     $this->assert->array($iterator->getNamespaces())->isEmpty();
     $iterator->appendNamespace($namespaceIterator = new iterators\phpNamespace());
     $this->assert->array($iterator->getNamespaces())->isEqualTo(array($namespaceIterator));
     $iterator->appendNamespace($otherNamespaceIterator = new iterators\phpNamespace());
     $this->assert->array($iterator->getNamespaces())->isEqualTo(array($namespaceIterator, $otherNamespaceIterator));
 }