Beispiel #1
0
<?php

Chain::add('intersect', function ($data, $other) {
    return array_intersect($data, Hooray::unwrap([$other]));
});
Beispiel #2
0
function hooray()
{
    return new Hooray(Hooray::unwrap(func_get_args()));
}
Beispiel #3
0
 function testUnwrapsHoorays()
 {
     $this->assertEquals([1], Hooray::unwrap([new Hooray([1])]));
 }