当前位置: 首页>>代码示例>>PHP>>正文


PHP UnitTestCase::after方法代码示例

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


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

示例1: after

 /**
  * Decorates SimpleTest's implementation to auto-validate mock objects.
  */
 public function after($method)
 {
     try {
         $this->_mockery()->assertIsSatisfied();
     } catch (Yay_NotSatisfiedException $e) {
         $this->fail($e->getMessage());
     }
     $this->_mockery = null;
     return parent::after($method);
 }
开发者ID:abouthalf,项目名称:archies-recipes,代码行数:13,代码来源:SwiftUnitTestCase.php

示例2: after

 /**
  * Announces the end of a test.
  *
  * @param string $method Test method just finished.
  * @return void
  * @access public
  */
 function after($method)
 {
     $isTestMethod = !in_array(strtolower($method), array('start', 'end'));
     if (isset($this->_fixtures) && isset($this->db) && $isTestMethod) {
         foreach ($this->_fixtures as $fixture) {
             $fixture->truncate($this->db);
         }
         $this->__truncated = true;
     } else {
         $this->__truncated = false;
     }
     if (!in_array(strtolower($method), $this->methods)) {
         $this->endTest($method);
     }
     $this->_should_skip = false;
     parent::after($method);
 }
开发者ID:cls1991,项目名称:ryzomcore,代码行数:24,代码来源:cake_test_case.php

示例3: after

 /**
  * Announces the end of a test.
  *
  * @param string $method Test method just finished.
  *
  * @access public
  */
 function after($method)
 {
     if (isset($this->_fixtures) && isset($this->db) && !in_array(low($method), array('start', 'end'))) {
         foreach ($this->_fixtures as $fixture) {
             $query = $fixture->truncate();
             if (isset($query) && $query !== false) {
                 $this->db->_execute($query);
             }
         }
     }
     if (!in_array(low($method), $this->methods)) {
         $this->endTest($method);
     }
     parent::after($method);
 }
开发者ID:rhencke,项目名称:mozilla-cvs-history,代码行数:22,代码来源:cake_test_case.php

示例4: after

 /**
  *    Announces the end of the test. Includes private clean up.
  *    @param string $method    Test method just finished.
  *    @access public
  */
 function after($method)
 {
     parent::after($this->cleanCamelCase($method));
 }
开发者ID:nterray,项目名称:tuleap,代码行数:9,代码来源:TuleapTestCase.class.php

示例5: after

 /**
  *    Announces the end of the test. Includes private clean up.
  *    @param string $method    Test method just finished.
  *    @access public
  */
 function after($method)
 {
     $this->unsetBrowser();
     parent::after($method);
 }
开发者ID:GerHobbelt,项目名称:simpletest,代码行数:10,代码来源:web_tester.php

示例6: after

 /**
  * Announces the end of a test.
  *
  * @param string $method Test method just finished.
  *
  * @access public
  */
 function after($method)
 {
     if (isset($this->_fixtures) && isset($this->db) && !in_array(low($method), array('start', 'end'))) {
         foreach ($this->_fixtures as $fixture) {
             $this->db->truncate($fixture->table);
         }
         $this->__truncated = true;
     } else {
         $this->__truncated = false;
     }
     if (!in_array(low($method), $this->methods)) {
         $this->endTest($method);
     }
     parent::after($method);
 }
开发者ID:kaz0636,项目名称:openflp,代码行数:22,代码来源:cake_test_case.php


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