コード例 #1
0
function _lastly($function, $finally, $context = NULL)
{
    return Underscore::lastly($function, $finally, $context);
}
コード例 #2
0
ファイル: Underscore.php プロジェクト: brombal/underscore.php
 /**
  * @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();
 }