public function testSetAndGetNamespace() { $c = ClassGenerator::factory('TestClass'); $c->setNamespace(new NamespaceGenerator('Test\\Space')); $this->assertEquals('Test\\Space', $c->getNamespace()->getNamespace()); }