Skip to content

Instantly share code, notes, and snippets.

@amochohan
Created March 16, 2018 16:35
Embed
What would you like to do?
<?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