Skip to content

Instantly share code, notes, and snippets.

@amochohan
Created March 16, 2018 16:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save amochohan/82ab4c81c5628b7fa0025fba0759b2c1 to your computer and use it in GitHub Desktop.
<?php
class CalculatorTest extends TestCase
{
/** @test */
public function it_adds_two_numbers()
{
$calculator = new Calculator();
$total = $calculator->sum(1, 2);
$this->assertSame(3, $total);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment