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


PHP PHPUnit_Framework_AssertionFailedError::__construct方法代码示例

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


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

示例1: __construct

 /**
  * Constructor.
  *
  * @param string  $message
  * @param integer $code
  * @param string  $file
  * @param integer $line
  * @param array   $trace
  */
 public function __construct($message, $code, $file, $line, $trace)
 {
     parent::__construct($message, $code);
     $this->syntheticFile = $file;
     $this->syntheticLine = $line;
     $this->syntheticTrace = $trace;
 }
开发者ID:HarveyCheng,项目名称:myblog,代码行数:16,代码来源:SyntheticError.php

示例2: __construct

 public function __construct($description, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL, $message = '')
 {
     $this->description = $description;
     $this->comparisonFailure = $comparisonFailure;
     if (!empty($message)) {
         $description .= "\n" . $message;
     }
     parent::__construct($description);
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:9,代码来源:ExpectationFailedException.php

示例3: __construct

 public function __construct($message, Process $process)
 {
     if ($output = $process->getOutput()) {
         $message .= "\n\nCommand output:\n" . $output;
     }
     if ($stderr = $process->getErrorOutput()) {
         $message .= "\n\nCommand stderr:\n" . $stderr;
     }
     parent::__construct($message);
 }
开发者ID:leolandotan,项目名称:drush,代码行数:10,代码来源:UnishProcessFailedError.php

示例4: __construct

 public function __construct($selector, $message = null)
 {
     if (is_array($selector)) {
         $type = strtolower(key($selector));
         $locator = $selector[$type];
         parent::__construct("Element with {$type} '{$locator}' was not found.");
         return;
     }
     if ($selector instanceof \WebDriverBy) {
         $type = $selector->getMechanism();
         $locator = $selector->getValue();
         parent::__construct("Element with {$type} '{$locator}' was not found.");
         return;
     }
     parent::__construct($message . " '{$selector}' was not found.");
 }
开发者ID:codeception,项目名称:base,代码行数:16,代码来源:ElementNotFound.php

示例5: __construct

 public function __construct($message, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = null, Exception $previous = null)
 {
     $this->comparisonFailure = $comparisonFailure;
     parent::__construct($message, 0, $previous);
 }
开发者ID:ronaldbao,项目名称:phpunit,代码行数:5,代码来源:ExpectationFailedException.php

示例6: __construct

 public function __construct($message, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL)
 {
     $this->comparisonFailure = $comparisonFailure;
     parent::__construct($message);
 }
开发者ID:qube81,项目名称:old-phpunit,代码行数:5,代码来源:ExpectationFailedException.php

示例7: __construct

 public function __construct($description, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL, $message = '')
 {
     $this->description = $description;
     $this->comparisonFailure = $comparisonFailure;
     parent::__construct($message);
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:6,代码来源:ExpectationFailedException.php

示例8: __construct

 public function __construct($message, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL, Exception $previous = NULL)
 {
     $this->comparisonFailure = $comparisonFailure;
     parent::__construct($message, 0, $previous);
 }
开发者ID:hashar,项目名称:phpunit,代码行数:5,代码来源:ExpectationFailedException.php

示例9: __construct

 /**
  * Constructs a comparison failure.
  *
  * @param           string $expected
  * @param           string $actual
  * @param  optional string $message
  * @access public
  */
 public function __construct($expected, $actual, $message = '')
 {
     parent::__construct($message);
     $this->fExpected = $expected;
     $this->fActual = $actual;
 }
开发者ID:amjadtbssm,项目名称:website,代码行数:14,代码来源:ComparisonFailure.php

示例10: __construct

 /**
  * @param \Exception $exception
  */
 public function __construct(\Exception $exception)
 {
     parent::__construct($exception);
 }
开发者ID:Mohitsahu123,项目名称:mtf,代码行数:7,代码来源:TestResultException.php

示例11: __construct

 public function __construct($selector, $message = null)
 {
     parent::__construct($message . " '{$selector}' was not found on page.");
 }
开发者ID:lenninsanchez,项目名称:donadores,代码行数:4,代码来源:ElementNotFound.php

示例12: __construct

 public function __construct($selector, $message = null)
 {
     $selector = Locator::humanReadableString($selector);
     parent::__construct($message . " element with {$selector} was not found.");
 }
开发者ID:hitechdk,项目名称:Codeception,代码行数:5,代码来源:ElementNotFound.php


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