PHP: else if statement
Instructions
Loading...
Your exercise will be checked with these tests:
<?php
namespace HexletBasics\Conditionals\ElseIfStatement;
use PHPUnit\Framework\TestCase;
class SolutionTest extends TestCase
{
public function test()
{
require 'index.php';
$this->assertEquals('friend', whoIsThisHouseToStarks('Tully'));
$this->assertEquals('friend', whoIsThisHouseToStarks('Karstark'));
$this->assertEquals('enemy', whoIsThisHouseToStarks('Lannister'));
$this->assertEquals('neutral', whoIsThisHouseToStarks('Martell'));
$this->assertEquals('neutral', whoIsThisHouseToStarks('undefined'));
}
}
Teacher's solution will be available in:
20:00
