Write a suite of tests that display the prime factors for a number.
The prime factor/s for:
- 4 are 2 * 2 or [2, 2]
- 5 is [5]
- 6 are 2 * 3 or [2, 3]
- 12 are 2 * 2 * 3 or [2, 2, 3]
- 50 are 2 * 5 * 5 or [2, 2, 5]
- 100 are 2 * 5 * 5 * 5 or [2, 2, 5, 5]
composer install
./vendor/bin/codeception run unit
Here are some running time comparisons regarding Codeception vs PHPSpec.