本文整理汇总了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;
}
示例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);
}
示例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);
}
示例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.");
}
示例5: __construct
public function __construct($message, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = null, Exception $previous = null)
{
$this->comparisonFailure = $comparisonFailure;
parent::__construct($message, 0, $previous);
}
示例6: __construct
public function __construct($message, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL)
{
$this->comparisonFailure = $comparisonFailure;
parent::__construct($message);
}
示例7: __construct
public function __construct($description, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL, $message = '')
{
$this->description = $description;
$this->comparisonFailure = $comparisonFailure;
parent::__construct($message);
}
示例8: __construct
public function __construct($message, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL, Exception $previous = NULL)
{
$this->comparisonFailure = $comparisonFailure;
parent::__construct($message, 0, $previous);
}
示例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;
}
示例10: __construct
/**
* @param \Exception $exception
*/
public function __construct(\Exception $exception)
{
parent::__construct($exception);
}
示例11: __construct
public function __construct($selector, $message = null)
{
parent::__construct($message . " '{$selector}' was not found on page.");
}
示例12: __construct
public function __construct($selector, $message = null)
{
$selector = Locator::humanReadableString($selector);
parent::__construct($message . " element with {$selector} was not found.");
}