PHP: Logical Operators
Instructions
Tips
Loading...
Your exercise will be checked with these tests:
<?php
namespace HexletBasics\Logic\LogicalOperators;
use PHPUnit\Framework\TestCase;
class SolutionTest extends TestCase
{
public function test()
{
require 'index.php';
$this->assertTrue(isLeapYear(2016));
$this->assertTrue(isLeapYear(2000));
$this->assertFalse(isLeapYear(2017));
$this->assertFalse(isLeapYear(2018));
$this->assertFalse(isLeapYear(1900));
}
}
Teacher's solution will be available in:
20:00
