Esempio n. 1
0
<?php

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