Added php project and its unit tests.

This commit is contained in:
2023-05-08 12:45:15 +03:00
commit 08f56f08d2
7 changed files with 1834 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
require_once 'src/Simple.php';
use PHPUnit\Framework\TestCase;
class SimpleTest extends TestCase
{
public function testAdd()
{
$simple = new Simple();
$result = $simple->add(2, 3);
$this->assertEquals(5, $result);
}
public function testSubtract()
{
$simple = new Simple();
$result = $simple->subtract(3, 2);
$this->assertEquals(1, $result);
}
}
?>