Skip to content

Commit

Permalink
Katas.
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Fenton <info@enhance-php.com>
  • Loading branch information
Steve Fenton committed Oct 9, 2011
1 parent 27b1745 commit e64a5f4
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Kata/StringCalculator.php
@@ -0,0 +1,9 @@
<?php
class StringCalculator
{
public function add($numbers)
{

}
}
?>
16 changes: 16 additions & 0 deletions Kata/StringCalculatorTests.php
@@ -0,0 +1,16 @@
<?php
class StringCalculatorTests extends EnhanceTestFixture
{
private $target;

public function setUp()
{
$this->target = Enhance::getCodeCoverageWrapper('StringCalculator');
}

public function startWritingTests()
{

}
}
?>
9 changes: 9 additions & 0 deletions Kata/index.php
@@ -0,0 +1,9 @@
<?php
// Include the test framework
include('../EnhanceTestFramework.php');
// Find the tests - '.' is the current folder
Enhance::discoverTests('.');
// Run the tests
Enhance::runTests();
?>

Binary file added Kata_BeforeUse.zip
Binary file not shown.

0 comments on commit e64a5f4

Please sign in to comment.