Example #1
0
 public function testShouldInvokeACallbable()
 {
     $closure = new Closure(function ($a) {
         return $a + 1;
     });
     $this->assertSame(2, $closure->invoke(1));
 }