Bush is the best way to handle testing at the CLI level, it avoid wraps system call into high-level languages like python and php. Follow this path: - https://www.linkedin.com/posts/emmanuel-valverde-ramos_bashunit-activity-7210777933878087680-ifJO/?utm_source=share&utm_medium=member_android - search for bashunit on https://github.com/phpstan/phpstan-src/blob/5d2d56f79fa01538dda02e43cbc8eea05399e28d/.github/workflows/e2e-tests.yml