/** * Build controller class name * * @param string $module * @param string $actionPath * @return string */ public function getActionClassName($module, $actionPath) { $prefix = $this->pathPrefix ? 'Controller\\' . $this->pathPrefix : 'Controller'; return $this->nameBuilder->buildClassName(array($module, $prefix, $actionPath)); }
/** * @param array $parts * @param string $expected * * @dataProvider buildClassNameDataProvider */ public function testBuildClassName($parts, $expected) { $this->assertEquals($expected, $this->nameBuilder->buildClassName($parts)); }