PHP: Conditional constructions (if)
Instructions
Loading...
Your exercise will be checked with these tests:
<?php
namespace HexletBasics\Conditionals\IfStatement;
use PHPUnit\Framework\TestCase;
class SolutionTest extends TestCase
{
public function test()
{
require 'index.php';
$this->assertEquals('Try again!', guessNumber(100500));
$this->assertEquals('You win!', guessNumber(42));
}
}
Teacher's solution will be available in:
20:00
