Beispiel #1
0
 /**
  * Test the JRegistry::getNamespaces method.
  */
 public function testGetNameSpaces()
 {
     $a = new JRegistry();
     $a->set('foo', 'bar1');
     $a->set('config.foo', 'bar2');
     $this->assertThat($a->getNameSpaces(), $this->identicalTo(array()), 'Line: ' . __LINE__ . '.');
 }
 /**
  * Test the JRegistry::makeNamespace method.
  */
 public function testMakeNameSpace()
 {
     $a = new JRegistry();
     $a->makeNameSpace('foo');
     $this->assertThat($a->getNameSpaces(), $this->equalTo(array()), 'Line: ' . __LINE__ . '.');
 }