Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php declare(strict_types=1);
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
namespace PHPUnit\Framework;
11
 
12
/**
13
 * @internal This class is not covered by the backward compatibility promise for PHPUnit
14
 */
15
class SyntheticError extends AssertionFailedError
16
{
17
    /**
18
     * The synthetic file.
19
     *
20
     * @var string
21
     */
22
    protected $syntheticFile = '';
23
 
24
    /**
25
     * The synthetic line number.
26
     *
27
     * @var int
28
     */
29
    protected $syntheticLine = 0;
30
 
31
    /**
32
     * The synthetic trace.
33
     *
34
     * @var array
35
     */
36
    protected $syntheticTrace = [];
37
 
38
    public function __construct(string $message, int $code, string $file, int $line, array $trace)
39
    {
40
        parent::__construct($message, $code);
41
 
42
        $this->syntheticFile  = $file;
43
        $this->syntheticLine  = $line;
44
        $this->syntheticTrace = $trace;
45
    }
46
 
47
    public function getSyntheticFile(): string
48
    {
49
        return $this->syntheticFile;
50
    }
51
 
52
    public function getSyntheticLine(): int
53
    {
54
        return $this->syntheticLine;
55
    }
56
 
57
    public function getSyntheticTrace(): array
58
    {
59
        return $this->syntheticTrace;
60
    }
61
}