mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 22:09:48 +08:00
24 lines
512 B
PHP
24 lines
512 B
PHP
<?php
|
|
|
|
namespace yiiunit\framework\console;
|
|
|
|
use yii\console\controllers\HelpController;
|
|
|
|
class FakeHelpController extends HelpController
|
|
{
|
|
private static $_actionIndexLastCallParams;
|
|
|
|
public function actionIndex($command = null)
|
|
{
|
|
self::$_actionIndexLastCallParams = func_get_args();
|
|
}
|
|
|
|
public static function getActionIndexLastCallParams()
|
|
{
|
|
$params = self::$_actionIndexLastCallParams;
|
|
self::$_actionIndexLastCallParams = null;
|
|
|
|
return $params;
|
|
}
|
|
}
|