https://github.com/dyarleniber/awesome-fizzbuzz
This project was developed applying the Chain of Responsibility Pattern and the Builder Pattern to develop FizzBuzz.
https://github.com/dyarleniber/awesome-fizzbuzz
List: awesome-fizzbuzz
builder builder-pattern chain-of-responsibility chain-of-responsibility-pattern docker docker-compose fizzbuzz php php7 phpunit testing
Last synced: 2 months ago
JSON representation
This project was developed applying the Chain of Responsibility Pattern and the Builder Pattern to develop FizzBuzz.
- Host: GitHub
- URL: https://github.com/dyarleniber/awesome-fizzbuzz
- Owner: dyarleniber
- License: mit
- Created: 2019-12-26T21:15:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-26T21:32:08.000Z (over 6 years ago)
- Last Synced: 2025-09-08T10:02:42.954Z (10 months ago)
- Topics: builder, builder-pattern, chain-of-responsibility, chain-of-responsibility-pattern, docker, docker-compose, fizzbuzz, php, php7, phpunit, testing
- Language: PHP
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Awesome FizzBuzz
This project was developed applying the Chain of Responsibility Pattern and the Builder Pattern to develop FizzBuzz.
The "Fizz-Buzz test" is an interview question designed to help filter out the 99.5% of programming job candidates. The text of the programming assignment is as follows:
> Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.
The programming language used was PHP, to start the environment just run the following command with Docker Compose:
```shell
docker-compose up
```
To perform unit tests run the following command:
```shell
vendor/bin/phpunit tests/
```
But before that, install the dependencies (PHPUnit) with the following Composer command:
```shell
composer install
```