PHP: While loop
Instructions
Tips
Loading...
Your exercise will be checked with these tests:
<?php
namespace HexletBasics\Loops\WhileLoop;
use PHPUnit\Framework\TestCase;
class SolutionTest extends TestCase
{
public function test()
{
require 'index.php';
$expected = "3\n2\n1\nfinished!";
$this->expectOutputString($expected);
printNumbers(3);
}
}
Teacher's solution will be available in:
20:00
