Fix bug in style changes for the Use cases on the live site.
[yaffs-website] / vendor / phpunit / phpunit / src / Framework / SyntheticError.php
1 <?php
2 /*
3  * This file is part of PHPUnit.
4  *
5  * (c) Sebastian Bergmann <sebastian@phpunit.de>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 /**
12  * Creates a synthetic failed assertion.
13  *
14  * @since Class available since Release 3.5.0
15  */
16 class PHPUnit_Framework_SyntheticError extends PHPUnit_Framework_AssertionFailedError
17 {
18     /**
19      * The synthetic file.
20      *
21      * @var string
22      */
23     protected $syntheticFile = '';
24
25     /**
26      * The synthetic line number.
27      *
28      * @var int
29      */
30     protected $syntheticLine = 0;
31
32     /**
33      * The synthetic trace.
34      *
35      * @var array
36      */
37     protected $syntheticTrace = array();
38
39     /**
40      * Constructor.
41      *
42      * @param string $message
43      * @param int    $code
44      * @param string $file
45      * @param int    $line
46      * @param array  $trace
47      */
48     public function __construct($message, $code, $file, $line, $trace)
49     {
50         parent::__construct($message, $code);
51
52         $this->syntheticFile  = $file;
53         $this->syntheticLine  = $line;
54         $this->syntheticTrace = $trace;
55     }
56
57     /**
58      * @return string
59      */
60     public function getSyntheticFile()
61     {
62         return $this->syntheticFile;
63     }
64
65     /**
66      * @return int
67      */
68     public function getSyntheticLine()
69     {
70         return $this->syntheticLine;
71     }
72
73     /**
74      * @return array
75      */
76     public function getSyntheticTrace()
77     {
78         return $this->syntheticTrace;
79     }
80 }