@@ 50-59 (lines=10) @@ | ||
47 | /** |
|
48 | * Generates skeleton class for fake. |
|
49 | */ |
|
50 | public function actionGenfake($file) |
|
51 | { |
|
52 | $path = $this->buildFakePath($file); |
|
53 | if (!$this->force && file_exists($path)) { |
|
54 | Yii::warning("already exists: $path"); |
|
55 | return 1; |
|
56 | } |
|
57 | ||
58 | return $this->genFake($file, $path); |
|
59 | } |
|
60 | ||
61 | protected function genFake($file, $path) |
|
62 | { |
|
@@ 74-83 (lines=10) @@ | ||
71 | /** |
|
72 | * Generates skeleton class for test. |
|
73 | */ |
|
74 | public function actionGentest($file) |
|
75 | { |
|
76 | $path = $this->buildTestPath($file); |
|
77 | if (!$this->force && file_exists($path)) { |
|
78 | Yii::warning("already exists: $path"); |
|
79 | return 1; |
|
80 | } |
|
81 | ||
82 | return $this->genSkel($file); |
|
83 | } |
|
84 | ||
85 | protected static function prepareFile($file) |
|
86 | { |