Skip to content

training-yoyosan/prime-factors-kata-with-codeception

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prime factors with Codeception

Write a suite of tests that display the prime factors for a number.

Examples

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]

Usage

composer install
./vendor/bin/codeception run unit

Performance comparison to phpspec

Here are some running time comparisons regarding Codeception vs PHPSpec.

Codeception without deep cloning of properties

Codeception without deep cloning

Codeception with deep cloning of properties

Codeception with deep cloning

PHPSpec

PHPSpec

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages