for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Prelude\Tests;
use function Prelude\{none, not, equals};
class NoneTest extends \PHPUnit\Framework\TestCase
{
public function test()
$isEven = function (int $n) { return $n % 2 === 0; };
$isOdd = function (int $n) { return $n % 2 === 1; };
$this->assertTrue(
none($isEven)([1, 3, 5, 7, 9, 11])
);
$this->assertFalse(
none($isEven)([1, 3, 5, 7, 9, 10])
none($isOdd)([1, 3, 5, 7, 9, 11])
}