Skip to content

Latest commit

 

History

History
71 lines (54 loc) · 1.14 KB

README.md

File metadata and controls

71 lines (54 loc) · 1.14 KB

PHPC2 - 2024.10

Install

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

Running tests

$ ./vendor/bin/phpunit --coverage-html ./coverage --testdox

For mutation testing :

$ ./vendor/bin/infection
$ # or
$ ./vendor/bin/infection --only-covered

Trying the app

$ php ./run.php

Trying patterns

$ # 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

Play with Generics

See https://phpstan.org/r/b6e0257b-3e5d-441c-a2e0-a56121b745fc

Links