PHP: Creating (defining) functions
Instructions
Tips
Loading...
Your exercise will be checked with these tests:
<?php
namespace HexletBasics\DefineFunctions\Define;
use PHPUnit\Framework\TestCase;
class SolutionTest extends TestCase
{
public function test()
{
require 'index.php';
$expected = 'Winter is coming';
$this->expectOutputString($expected);
printMotto();
}
}
Teacher's solution will be available in:
20:00
