Skip to content

thiiagoms/learning-phpunit

Repository files navigation

Logo

Learning about PHPUnit 🐛

Dependencies

  • PHP 8.1
  • Composer

Usage

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

About

Learning about PHPUnit 💙 🐛

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages