class PHPUnit_Framework_SyntheticError in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/SyntheticError.php \PHPUnit_Framework_SyntheticError
Creates a synthetic failed assertion.
@since Class available since Release 3.5.0
Hierarchy
- class \PHPUnit_Framework_Exception extends \RuntimeException implements PHPUnit_Exception
- class \PHPUnit_Framework_AssertionFailedError implements PHPUnit_Framework_SelfDescribing
Expanded class hierarchy of PHPUnit_Framework_SyntheticError
File
- vendor/
phpunit/ phpunit/ src/ Framework/ SyntheticError.php, line 16
View source
class PHPUnit_Framework_SyntheticError extends PHPUnit_Framework_AssertionFailedError {
/**
* The synthetic file.
*
* @var string
*/
protected $syntheticFile = '';
/**
* The synthetic line number.
*
* @var int
*/
protected $syntheticLine = 0;
/**
* The synthetic trace.
*
* @var array
*/
protected $syntheticTrace = array();
/**
* Constructor.
*
* @param string $message
* @param int $code
* @param string $file
* @param int $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;
}
/**
* @return string
*/
public function getSyntheticFile() {
return $this->syntheticFile;
}
/**
* @return int
*/
public function getSyntheticLine() {
return $this->syntheticLine;
}
/**
* @return array
*/
public function getSyntheticTrace() {
return $this->syntheticTrace;
}
}