for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Prelude\Tests;
use function Prelude\compose;
class ComposeTest extends \PHPUnit\Framework\TestCase
{
/**
* @test
*/
public function shouldReturnJoined()
$compose = compose(
function ($x) {
return "foo($x)";
},
return "bar($x)";
return "baz($x)";
}
);
$this->assertSame($compose('x'), 'foo(bar(baz(x)))');