33A project to test your [ Codingame] ( https://www.codingame.com/ ) PHP code. It is not intended to have solutions.
44It only contains PHPUnit tests to let you code in your favorite IDE, outside of the Codingame web site.
55
6- [ ![ License] ( https://img.shields.io/github/license/cyrilverloop/codingame )] ( https://github.com/cyrilverloop/codingame/blob/trunk/LICENSE )
6+ [ ![ License] ( https://img.shields.io/github/license/cyrilverloop/codingame-php-tests )] ( https://github.com/cyrilverloop/codingame-php-tests /blob/trunk/LICENSE )
77[ ![ PHP version] ( https://img.shields.io/badge/php-%3D7.3-%23777BB4?logo=php&style=flat )] ( https://www.php.net/ )
88
99
@@ -12,14 +12,14 @@ It only contains PHPUnit tests to let you code in your favorite IDE, outside of
1212Downloading the project :
1313``` shellsession
1414user@host ~ $ cd [PATH_WHERE_TO_PUT_THE_PROJECT] # E.g. ~/projects/
15- user@host projects $ git clone https://github.com/cyrilverloop/codingame.git
16- user@host projects $ cd codingame
15+ user@host projects $ git clone https://github.com/cyrilverloop/codingame-php-tests .git
16+ user@host projects $ cd codingame-php-tests
1717```
1818
1919Installing the dependencies :
2020``` shellsession
21- user@host codingame $ docker compose run --rm app composer install -o
22- user@host codingame $ docker compose run --rm app phive install --trust-gpg-keys 4AA394086372C20A,12CE0F1D262429A5,31C7E470E2138192
21+ user@host codingame-php-tests $ docker compose run --rm app composer install -o
22+ user@host codingame-php-tests $ docker compose run --rm app phive install --trust-gpg-keys 4AA394086372C20A,12CE0F1D262429A5,31C7E470E2138192
2323```
2424
2525
@@ -28,7 +28,7 @@ user@host codingame$ docker compose run --rm app phive install --trust-gpg-keys
2828Every classes in ` ./src/**/*.dist ` files have an ` execute() ` method with the default Codingame code.
2929To try a puzzle, copy the corresponding file and change the extension to ` php ` :
3030``` shellsession
31- user@host codingame $ cp ./src/Training/Easy/Unary/Unary.dist ./src/Training/Easy/Unary/Unary.php
31+ user@host codingame-php-tests $ cp ./src/Training/Easy/Unary/Unary.dist ./src/Training/Easy/Unary/Unary.php
3232```
3333Then, add your code to solve the puzzle.
3434
@@ -39,17 +39,17 @@ Then, add your code to solve the puzzle.
3939
4040Executing all the tests :
4141``` shellsession
42- user@host codingame $ docker compose run --rm app ./tools/phpunit -c ./ci/phpunit.dist.xml
42+ user@host codingame-php-tests $ docker compose run --rm app ./tools/phpunit -c ./ci/phpunit.dist.xml
4343```
4444
4545Executing tests for a particular puzzle or a test case :
4646``` shellsession
47- user@host codingame $ docker compose run --rm app ./tools/phpunit -c ./ci/phpunit.dist.xml --group [GROUP_NAME]
47+ user@host codingame-php-tests $ docker compose run --rm app ./tools/phpunit -c ./ci/phpunit.dist.xml --group [GROUP_NAME]
4848```
4949
5050To view the list of test groups :
5151``` shellsession
52- user@host codingame $ docker compose run --rm app ./tools/phpunit -c ./ci/phpunit.dist.xml --list-groups
52+ user@host codingame-php-tests $ docker compose run --rm app ./tools/phpunit -c ./ci/phpunit.dist.xml --list-groups
5353```
5454
5555
0 commit comments