# Console `./yii` (Task 13, passo 1)

Execução: `php yii help` e `php yii help <comando>` em **base74** (PHP 7.4.33, código original), **alvo83** (PHP 8.3.36, código migrado) e **migr74** (PHP 7.4.33, código migrado).

Comandos: `asset cache cron fixture help message migrate serve `

| Verificação | Resultado |
|---|---|
| `yii help` (58 linhas) | idêntico nos 3, exceto `This is Yii version 2.0.16.1` → `2.0.55` e a descrição de `migrate/fresh` (texto do framework) |
| `yii help cron` (comando da aplicação, `commands/CronController.php`) | **idêntico** nos 3 |
| `yii help asset/fixture/help/message` | idênticos |
| `yii help cache/migrate/serve` | só textos de ajuda do framework (URLs `http→https`, descrição de `migrate/fresh`, opção nova `--silent-exit-on-exception` do `serve`) |

Os comandos `cron/*` não foram **executados** (só a ajuda): eles escrevem no banco e enviam e-mails; ficam como não verificado no relatório final.

## Diferenças completas

```diff
== cache (alvo83)
26c26
< - Using [Cachetool](http://gordalina.github.io/cachetool/)
---
> - Using [Cachetool](https://gordalina.github.io/cachetool/)
== cache (migr74)
26c26
< - Using [Cachetool](http://gordalina.github.io/cachetool/)
---
> - Using [Cachetool](https://gordalina.github.io/cachetool/)
== migrate (alvo83)
56c56
< - migrate/fresh         Truncates the whole database and starts the migration from the beginning.
---
> - migrate/fresh         Drops all tables and related constraints. Starts the migration from the beginning.
== migrate (migr74)
56c56
< - migrate/fresh         Truncates the whole database and starts the migration from the beginning.
---
> - migrate/fresh         Drops all tables and related constraints. Starts the migration from the beginning.
== serve (alvo83)
28c28
< --help, -h: boolean, 0 or 1
---
> --help, -h: boolean, 0 or 1 (defaults to 0)
38,39c38,44
<   path to router script.
<   See https://secure.php.net/manual/en/features.commandline.webserver.php
---
>   path or [path alias](guide:concept-aliases) to router script.
>   See https://www.php.net/manual/en/features.commandline.webserver.php
> 
> --silent-exit-on-exception: boolean, 0 or 1
>   if true - script finish with `ExitCode::OK` in case of exception.
>   false - `ExitCode::UNSPECIFIED_ERROR`.
>   Default: `YII_ENV_TEST`
== serve (migr74)
28c28
< --help, -h: boolean, 0 or 1
---
> --help, -h: boolean, 0 or 1 (defaults to 0)
38,39c38,44
<   path to router script.
<   See https://secure.php.net/manual/en/features.commandline.webserver.php
---
>   path or [path alias](guide:concept-aliases) to router script.
>   See https://www.php.net/manual/en/features.commandline.webserver.php
> 
> --silent-exit-on-exception: boolean, 0 or 1
>   if true - script finish with `ExitCode::OK` in case of exception.
>   false - `ExitCode::UNSPECIFIED_ERROR`.
>   Default: `YII_ENV_TEST`
```
