Пример #1
0
 /**
  * Sets a format for mock file names to be saved with
  *
  * Use %FileName% somewhere in a string to denote where you want the
  * name of the original file to appear in the mock name.
  *
  * E.g. if your file is 'MyEntity.php', and your format is
  * 'Mock%FileName%Entity', the resulting file will be named
  * 'MockMyEntityEntity.php'.
  *
  * MockMaker default format is '%FileName%Mock'.
  *
  * @param   string $format
  * @return  MockMaker
  */
 public function saveMocksWithFileNameFormat($format)
 {
     $this->config->setMockFileNameFormat($format);
     return $this;
 }