/** * Gibt Pfad für den Namespace der Entities zurück * * @return Webforge\Common\System\Dir */ public function getEntitiesPath() { if (!isset($this->entitiesPath)) { $this->entitiesPath = Code::namespaceToPath($this->entitiesNamespace, $this->project->dir('lib')); } return $this->entitiesPath; }
public function testNamespaceToPath_withoutDirParam() { $ds = DIRECTORY_SEPARATOR; $this->assertEquals(getcwd() . $ds . 'Psc' . $ds . 'Code' . $ds . 'Generate' . $ds, (string) Code::namespaceToPath('\\Psc\\Code\\Generate')->resolvePath()); }