PHP: For loop
Instructions
Loading...
Your exercise will be checked with these tests:
<?php
namespace HexletBasics\Loops\ForLoop;
use PHPUnit\Framework\TestCase;
class SolutionTest extends TestCase
{
public function test()
{
require 'index.php';
$this->assertEquals(1, sumOfSeries(1, 1));
$this->assertEquals(3, sumOfSeries(1, 2));
$this->assertEquals(24, sumOfSeries(7, 9));
}
}
Teacher's solution will be available in:
20:00
