function _lastly($function, $finally, $context = NULL)
{
    return Underscore::lastly($function, $finally, $context);
}
Esempio n. 2
0
 /**
  * @tags utilities
  */
 public function testLastly()
 {
     try {
         _::lastly(function () {
             throw new \Exception("");
         }, function () use(&$lastly) {
             $lastly = true;
         });
     } catch (\Exception $e) {
         $exception = true;
     }
     $this->boolean($lastly)->isTrue();
     $this->boolean($exception)->isTrue();
 }