for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Aerophant\RamdaTest;
use function Aerophant\Ramda\drop;
use PHPUnit\Framework\TestCase;
class DropTest extends TestCase
{
public function testDropFirst()
$array = [1, 3, 4, 5, 7];
$result = drop(0)($array);
$this->assertEquals([3, 4, 5, 7], $result);
}
public function testDropLast()
$result = drop(count($array) - 1)($array);
$this->assertEquals([1, 3, 4, 5], $result);
public function testDropNth()
$result = drop(2)($array);
$this->assertEquals([1, 3, 5, 7], $result);