PHP: Returning from loops
Instructions
Tips
Loading...
Your exercise will be checked with these tests:
<?php
namespace HexletBasics\Loops\ReturnFromLoop;
use PHPUnit\Framework\TestCase;
class SolutionTest extends TestCase
{
public function test()
{
require 'index.php';
$this->assertTrue(hasChar('Hexlet', 'H'));
$this->assertFalse(hasChar('Hexlet', 'h'));
$this->assertTrue(hasChar('Awesomeness', 'm'));
$this->assertFalse(hasChar('Awesomeness', 'd'));
}
}
Teacher's solution will be available in:
20:00
