for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Aerophant\RamdaTest;
use function Aerophant\Ramda\first;
use PHPUnit\Framework\TestCase;
class FirstTest extends TestCase
{
public function testFirst()
$argument = [1, 2, 3, 4, 5];
$expect = 1;
$actual = first()($argument);
$this->assertEquals($expect, $actual);
}
public function testFirstWithEmptyArray()
$argument = [];
$this->assertNull($actual);