- PHP 8.1
- Composer
01 -) Clone the project
$ git clone https://github.com/thiiagoms/learning-phpunit
02 -) Install dependencies:
$ cd learning-phpunit
user@pc:leasrning-phpunit$ composer install
03 -) To run:
- Tests
user@pc:leasrning-phpunit$ composer tests
- Lint
user@pc:leasrning-phpunit$ composer phplint
- PHPCS and PHPCBF
user@pc:leasrning-phpunit$ composer phpcs
user@pc:leasrning-phpunit$ composer phpcbf
04 -) Run application
user@pc:leasrning-phpunit$ chmod +x app
user@pc:leasrning-phpunit$ ./app
██████╗ ██╗ ██╗██████╗ ██╗ ██╗███╗ ██╗██╗████████╗
██╔══██╗██║ ██║██╔══██╗██║ ██║████╗ ██║██║╚══██╔══╝
██████╔╝███████║██████╔╝██║ ██║██╔██╗ ██║██║ ██║
██╔═══╝ ██╔══██║██╔═══╝ ██║ ██║██║╚██╗██║██║ ██║
██║ ██║ ██║██║ ╚██████╔╝██║ ╚████║██║ ██║
╚═╝ ╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝
[*] Learning about phpunit with simple calculator
> Number One: 2
> Number Two: 2