Skip to content

Instantly share code, notes, and snippets.

@sameernyaupane
Created November 6, 2018 02:57
Show Gist options
  • Save sameernyaupane/3481616fbdcfe7a11ccea62e92efff99 to your computer and use it in GitHub Desktop.
Save sameernyaupane/3481616fbdcfe7a11ccea62e92efff99 to your computer and use it in GitHub Desktop.
<?php
namespace Tests\Integration;
use Tests\TestCase;
class MathTest extends TestCase
{
public function setUp()
{
parent::setUp();
$this->math = $this->app->make('App\Math');
}
public function test_getArea_WhenCalledWithLength2_Return4()
{
$response = $this->math->getArea(2);
$this->assertTrue(is_int($response));
$this->assertEquals(4, $response);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment