@@ 55-64 (lines=10) @@ | ||
52 | return $this->passthru('phpunit', $args); |
|
53 | } |
|
54 | ||
55 | public function actionGenfake($file) |
|
56 | { |
|
57 | $path = $this->buildFakePath($file); |
|
58 | if (!$this->force && file_exists($path)) { |
|
59 | Yii::warning("already exists: $path"); |
|
60 | return 1; |
|
61 | } |
|
62 | ||
63 | return $this->genFake($file, $path); |
|
64 | } |
|
65 | ||
66 | public function genFake($file, $path) |
|
67 | { |
|
@@ 76-85 (lines=10) @@ | ||
73 | BaseHandler::write($path, $text); |
|
74 | } |
|
75 | ||
76 | public function actionGentest($file) |
|
77 | { |
|
78 | $path = $this->buildTestPath($file); |
|
79 | if (!$this->force && file_exists($path)) { |
|
80 | Yii::warning("already exists: $path"); |
|
81 | return 1; |
|
82 | } |
|
83 | ||
84 | return $this->genSkel($file); |
|
85 | } |
|
86 | ||
87 | public function genSkel($file) |
|
88 | { |