Beispiel #1
0
 public function prepareData($data)
 {
     return array_merge(['config' => Yii::$app->config, 'this' => $this, 'file' => $data->file], parent::prepareData($data));
 }
 public function genFake($file, $path)
 {
     $text = $this->getView()->render('phpunit/fake.twig', ['class' => $this->buildClass($file), 'namespace' => $this->buildTestNamespace(), 'name' => $file]);
     BaseHandler::write($path, $text);
 }