Пример #1
0
 /**
  * Sets a 'base' namespace for mocks
  *
  * This is used when generating mock code. MockMaker can make
  * a best-guess attempt at generating this for you, but it's
  * difficult to be psychic and get it right. Basically, whatever
  * the valid namespace should be for Whatever\Save\Path\You\Picked
  * should be set here. It will be used for both top-level 'read dir'
  * classes, and appended to for sub-level classes detected during
  * a recursive read.
  *
  * @param   string $namespace
  * @return  MockMaker
  */
 public function useBaseNamespaceForMocks($namespace)
 {
     $this->config->setMockFileBaseNamespace($namespace);
     return $this;
 }