3 * This file is part of PHPUnit.
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
12 * Creates a synthetic failed assertion.
14 * @since Class available since Release 3.5.0
16 class PHPUnit_Framework_SyntheticError extends PHPUnit_Framework_AssertionFailedError
23 protected $syntheticFile = '';
26 * The synthetic line number.
30 protected $syntheticLine = 0;
33 * The synthetic trace.
37 protected $syntheticTrace = array();
42 * @param string $message
48 public function __construct($message, $code, $file, $line, $trace)
50 parent::__construct($message, $code);
52 $this->syntheticFile = $file;
53 $this->syntheticLine = $line;
54 $this->syntheticTrace = $trace;
60 public function getSyntheticFile()
62 return $this->syntheticFile;
68 public function getSyntheticLine()
70 return $this->syntheticLine;
76 public function getSyntheticTrace()
78 return $this->syntheticTrace;