aswi2020sebela-gitlab/website/tests/CalculatorTest.php @ 24300f62
1 |
<?php
|
---|---|
2 |
|
3 |
namespace App\tests; |
4 |
|
5 |
use App\Calculator; |
6 |
use PHPUnit\Framework\TestCase; |
7 |
|
8 |
class CalculatorTest extends TestCase |
9 |
{
|
10 |
public function testAdd() |
11 |
{
|
12 |
$calculator = new Calculator(); |
13 |
$result = $calculator->add(30, 12); |
14 |
|
15 |
// assert that your calculator added the numbers correctly!
|
16 |
$this->assertEquals(42, $result); |
17 |
}
|
18 |
}
|