コード例 #1
0
ファイル: ScopeTest.php プロジェクト: tomaka17/niysu
 /**
  * @depends testCallValuePassing
  */
 public function testCallPassingTypeWithCallback()
 {
     $scope = new Scope();
     $scope->callback('test', function () {
         return new \Exception();
     }, 'Exception');
     $scope->call(function (\Exception $x) {
         $this->assertInstanceOf('Exception', $x);
     });
 }