Ejemplo n.º 1
0
 /**
  * Returns namespace of this module.
  * 
  * @return string
  */
 public function getNamespace()
 {
     if ($this->namespace) {
         return $this->namespace;
     }
     $this->namespace = Debugger::getNamespace($this);
     return $this->namespace;
 }
Ejemplo n.º 2
0
 public function testGetNamespace()
 {
     $this->assertEquals('', Debugger::getNamespace(new \stdClass()));
     $this->assertEquals('MD\\Foundation\\Tests\\TestFixtures', Debugger::getNamespace(new Collection()));
 }