PhpSpec\Locator\Resource::getSpecNamespace PHP Method

getSpecNamespace() public method

public getSpecNamespace ( ) : string
return string
    public function getSpecNamespace();

Usage Example

 /**
  * @param Resource $resource
  * @param string            $filepath
  *
  * @return string
  */
 protected function renderTemplate(Resource $resource, $filepath)
 {
     $values = array('%filepath%' => $filepath, '%name%' => $resource->getSpecName(), '%namespace%' => $resource->getSpecNamespace(), '%subject%' => $resource->getSrcClassname(), '%subject_class%' => $resource->getName());
     if (!($content = $this->getTemplateRenderer()->render('specification', $values))) {
         $content = $this->getTemplateRenderer()->renderString($this->getTemplate(), $values);
     }
     return $content;
 }
All Usage Examples Of PhpSpec\Locator\Resource::getSpecNamespace