for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Aerophant\RamdaTest;
use function Aerophant\Ramda\isNil;
use PHPUnit\Framework\TestCase;
class IsNilTest extends TestCase
{
public function testIsNilWithNull()
$actual = isNil()(null);
$this->assertTrue($actual);
}
public function testIsNilWithEmptyArray()
$actual = isNil()([]);
$this->assertFalse($actual);
public function testIsNilWithEmptyStdClassObject()
$actual = isNil()(new \stdClass());