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