Skip to content

Instantly share code, notes, and snippets.

@reginaldojunior
Last active January 13, 2018 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reginaldojunior/9258b9fff95b54997b403fc458b72d1e to your computer and use it in GitHub Desktop.
Save reginaldojunior/9258b9fff95b54997b403fc458b72d1e to your computer and use it in GitHub Desktop.
test.php
<?php
use Calc;
class TestCalc extends \PHPUnit_Framework_TestCase
{
public function testSumTwoNumbers()
{
$this->Calc = new Calc([5, 5));
$this->assertEquals($this->Calc->getResult(), 10);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment