PHP: Weak Typing - 2
Instructions
Tips
Loading...
Your exercise will be checked with these tests:
<?php
namespace HexletBasics\Logic\WeakTyping;
use PHPUnit\Framework\TestCase;
class SolutionTest extends TestCase
{
public function test()
{
require 'index.php';
$this->assertTrue(isFalsy(''));
$this->assertFalse(isFalsy(' '));
$this->assertTrue(isFalsy(null));
$this->assertTrue(isFalsy(false));
$this->assertFalse(isFalsy(true));
$this->assertFalse(isFalsy(3));
}
}
Teacher's solution will be available in:
20:00
