https://github.com/affix/phpcodekatas
A bunch of code katas to refresh my PHP memory
https://github.com/affix/phpcodekatas
Last synced: about 1 year ago
JSON representation
A bunch of code katas to refresh my PHP memory
- Host: GitHub
- URL: https://github.com/affix/phpcodekatas
- Owner: affix
- Created: 2017-04-28T20:26:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-28T21:44:09.000Z (about 9 years ago)
- Last Synced: 2025-01-14T14:59:39.347Z (over 1 year ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CODE KATAS
==========
[](https://travis-ci.org/Affix/PHPCodeKatas)
This is a repository of Code Katas to refresh my memory with PHP.
Each Kata is done using TDD and php unit. You can run the full suite using the following command.
`$ composer test`
This script is defined in the composer.json file
```
"scripts": {
"test": "vendor/bin/phpunit --testsuite katas"
}
```
# Completed Katas
FizzBuzz
--
Write a method that returns 'Fizz' for multiples of three and 'Buzz' for the multiples of five.
- For numbers which are multiples of both three and five return 'FizzBuzz'.
- For numbers that are neither, return the input number
Prime Numbers
--
A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.
* Write a method that checks if a number is prime number.