PHP: Ternary operator
Instructions
Loading...
Your exercise will be checked with these tests:
<?php
namespace HexletBasics\Logic\TernaryOperator;
use PHPUnit\Framework\TestCase;
class SolutionTest extends TestCase
{
public function test()
{
require 'index.php';
$this->assertEquals('flop', flipFlop('flip'));
$this->assertEquals('flip', flipFlop('flop'));
$this->assertEquals('flip', flipFlop(''));
}
}
Teacher's solution will be available in:
20:00
