@@ -59,6 +59,9 @@ discard block |
||
| 59 | 59 | return $this->genFake($file, $path); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @param string $path |
|
| 64 | + */ |
|
| 62 | 65 | protected function genFake($file, $path) |
| 63 | 66 | { |
| 64 | 67 | $text = $this->getView()->render('phpunit/fake.twig', [ |
@@ -83,6 +86,9 @@ discard block |
||
| 83 | 86 | return $this->genSkel($file); |
| 84 | 87 | } |
| 85 | 88 | |
| 89 | + /** |
|
| 90 | + * @return string |
|
| 91 | + */ |
|
| 86 | 92 | protected static function prepareFile($file) |
| 87 | 93 | { |
| 88 | 94 | return substr($file, -4) === '.php' ? substr($file, 0, -4) : $file; |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | |
| 11 | 11 | namespace hidev\phpunit\console; |
| 12 | 12 | |
| 13 | -use hidev\base\File; |
|
| 14 | 13 | use hidev\handlers\BaseHandler; |
| 15 | 14 | use Yii; |
| 16 | 15 | |