mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-06 15:28:58 +01: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;
|
|
}
|
|
}
|