Created
November 6, 2018 02:57
-
-
Save sameernyaupane/3481616fbdcfe7a11ccea62e92efff99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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