Clone this repository For example using SSH :
$ git clone [email protected]:adrienroches-sensio/spns.oop.2024-10-08.git
Then go inside the created directory and run :
$ composer install
$ ./vendor/bin/phpunit --coverage-html ./coverage --testdox
For mutation testing :
$ ./vendor/bin/infection
$ # or
$ ./vendor/bin/infection --only-covered
$ php ./run.php
$ # Singleton pattern
$ php ./pattern/singleton.php
$ # Container pattern
$ php ./pattern/container.php
$ # Proxy pattern
$ php ./pattern/proxy.php
$ # Play with iterators
$ php ./pattern/iterator.php
See https://phpstan.org/r/b6e0257b-3e5d-441c-a2e0-a56121b745fc