• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP SimpleInvokerDecorator类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中SimpleInvokerDecorator的典型用法代码示例。如果您正苦于以下问题:PHP SimpleInvokerDecorator类的具体用法?PHP SimpleInvokerDecorator怎么用?PHP SimpleInvokerDecorator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了SimpleInvokerDecorator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: invoke

 /**
  *    Invokes a test method and dispatches any
  *    untrapped errors. Called back from
  *    the visiting runner.
  *    @param string $method    Test method to call.
  *    @access public
  */
 function invoke($method)
 {
     $queue =& $this->_createErrorQueue();
     set_error_handler('SimpleTestErrorHandler', (E_ALL | E_STRICT) & ~E_RECOVERABLE_ERROR);
     parent::invoke($method);
     restore_error_handler();
     $queue->tally();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:15,代码来源:errors.php


示例2: invoke

 /**
  *    Invokes a test method and dispatches any
  *    untrapped errors. Called back from
  *    the visiting runner.
  *
  *    @param string $method    Test method to call.
  */
 public function invoke($method)
 {
     $queue =& $this->_createErrorQueue();
     set_error_handler('SimpleTestErrorHandler');
     parent::invoke($method);
     restore_error_handler();
     $queue->tally();
 }
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:15,代码来源:errors.php


示例3: invoke

 /**
  *    Invokes a test method and dispatches any
  *    untrapped errors.
  *    @param string $method    Test method to call.
  *    @access public
  */
 function invoke($method)
 {
     try {
         parent::invoke($method);
     } catch (Exception $exception) {
         $test_case =& $this->getTestCase();
         $test_case->exception($exception);
     }
 }
开发者ID:ahiliation,项目名称:beautifulwork,代码行数:15,代码来源:exceptions.php


示例4: invoke

 function invoke($method)
 {
     set_error_handler('simpleTestErrorHandler');
     parent::invoke($method);
     $queue =& SimpleErrorQueue::instance();
     while (list($severity, $message, $file, $line, $globals) = $queue->extract()) {
         $test_case =& $this->getTestCase();
         $test_case->error($severity, $message, $file, $line, $globals);
     }
     restore_error_handler();
 }
开发者ID:BackupTheBerlios,项目名称:phpbase-svn,代码行数:11,代码来源:runner.php


示例5: invoke

 /**
  *    Invokes a test method and dispatches any
  *    untrapped errors.
  *    @param string $method    Test method to call.
  *    @access public
  */
 function invoke($method)
 {
     try {
         parent::invoke($method);
     } catch (Exception $exception) {
         $test_case =& $this->getTestCase();
         $test_case->tearDown();
         // Added by [email protected].
         $test_case->exception($exception);
     }
 }
开发者ID:veritech,项目名称:pare-project,代码行数:17,代码来源:exceptions.php


示例6: invoke

 function invoke($method)
 {
     ob_start();
     parent::invoke($method);
     $output = ob_get_contents();
     ob_end_clean();
     $sock = new SimpleSocket("127.0.0.1", $this->_port, 5);
     $sock->write($output);
     $sock->close();
     echo $sock->getError();
 }
开发者ID:JackCanada,项目名称:moodle-hacks,代码行数:11,代码来源:eclipse.php


示例7: invoke

 /**
  *    Invokes a test method and dispatches any
  *    untrapped errors. Called back from
  *    the visiting runner.
  *    @param string $method    Test method to call.
  *    @access public
  */
 function invoke($method)
 {
     $context =& SimpleTest::getContext();
     $queue =& $context->get('SimpleErrorQueue');
     $queue->setTestCase($this->GetTestCase());
     set_error_handler('SimpleTestErrorHandler');
     parent::invoke($method);
     while (list($severity, $message, $file, $line) = $queue->extract()) {
         $severity = SimpleErrorQueue::getSeverityAsString($severity);
         $test =& $this->getTestCase();
         $test->error($severity, $message, $file, $line);
     }
     restore_error_handler();
 }
开发者ID:JackCanada,项目名称:moodle-hacks,代码行数:21,代码来源:errors.php


示例8: invoke

 /**
  *    Invokes a test method whilst trapping expected
  *    exceptions. Any left over unthrown exceptions
  *    are then reported as failures.
  *    @param string $method    Test method to call.
  */
 function invoke($method)
 {
     $trap = SimpleTest::getContext()->get('SimpleExceptionTrap');
     $trap->clear();
     try {
         parent::invoke($method);
     } catch (Exception $exception) {
         if (!$trap->isExpected($this->getTestCase(), $exception)) {
             $this->getTestCase()->exception($exception);
         }
         $trap->clear();
     }
     if ($message = $trap->getOutstanding()) {
         $this->getTestCase()->fail($message);
     }
 }
开发者ID:hafizubikm,项目名称:bakeme,代码行数:22,代码来源:exceptions.php


示例9: invoke

 /**
  *    Invokes a test method and dispatches any
  *    untrapped errors. Called back from
  *    the visiting runner.
  *    @param string $method    Test method to call.
  *    @access public
  */
 function invoke($method)
 {
     $queue =& $this->_createErrorQueue();
     set_error_handler('SimpleTestErrorHandler');
     //moodle hack start
     // note: this breaks PHP4 compatibility!
     $rethrow = null;
     try {
         parent::invoke($method);
     } catch (Exception $e) {
         $rethrow = $e;
     }
     restore_error_handler();
     $queue->tally();
     if ($rethrow) {
         throw $rethrow;
     }
     //moodle hack end
 }
开发者ID:vuchannguyen,项目名称:web,代码行数:26,代码来源:errors.php


示例10: invoke

 /**
  *    Invokes a test method whilst trapping expected
  *    exceptions. Any left over unthrown exceptions
  *    are then reported as failures.
  *
  *    @param string $method    Test method to call.
  */
 public function invoke($method)
 {
     $trap = SimpleTest::getContext()->get('SimpleExceptionTrap');
     $trap->clear();
     try {
         $has_thrown = false;
         parent::invoke($method);
     } catch (Exception $exception) {
         $has_thrown = true;
         if (!$trap->isExpected($this->getTestCase(), $exception)) {
             $this->getTestCase()->exception($exception);
         }
         $trap->clear();
     }
     if ($message = $trap->getOutstanding()) {
         $this->getTestCase()->fail($message);
     }
     if ($has_thrown) {
         try {
             parent::getTestCase()->tearDown();
         } catch (Exception $e) {
         }
     }
 }
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:exceptions.php


示例11: invoke

 /**
  *    Invokes a test method and dispatches any
  *    untrapped assertion failures. Called back from
  *    the visiting runner.
  *    @param string $method    Test method to call.
  *    @access public
  */
 function invoke($method)
 {
     $queue = $this->createFailQueue();
     parent::invoke($method);
     $queue->tally();
 }
开发者ID:GerHobbelt,项目名称:simpletest,代码行数:13,代码来源:fails.php


示例12: invoke

 /**
  *    Builds the browser and runs the test.
  *    @param string $method    Test method to call.
  *    @access public
  */
 function invoke($method)
 {
     $test =& $this->getTestCase();
     $test->setBrowser($test->createBrowser());
     parent::invoke($method);
     $test->unsetBrowser();
 }
开发者ID:BackupTheBerlios,项目名称:stato-svn,代码行数:12,代码来源:web_tester.php


示例13:

 function __construct(&$invoker, &$listener)
 {
     $this->_listener =& $listener;
     parent::__construct($invoker);
 }
开发者ID:triasfahrudin,项目名称:siska21,代码行数:5,代码来源:eclipse.php


示例14:

 function __construct($invoker, $listener)
 {
     parent::__construct($invoker);
     $this->listener = $listener;
 }
开发者ID:GerHobbelt,项目名称:simpletest,代码行数:5,代码来源:eclipse.php


示例15:

 /**
  *    Set up the ListTestInvoker.
  *    @param SimpleInvoker $invoker      Chained test method runner.
  *    @access public
  */
 function __construct($invoker)
 {
     parent::__construct($invoker);
 }
开发者ID:GerHobbelt,项目名称:simpletest,代码行数:9,代码来源:test_list.php



注:本文中的SimpleInvokerDecorator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP SimpleORMap类代码示例发布时间:2022-05-23
下一篇:
PHP SimpleImage类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap