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
final class PHPTAssertionFailedError extends SyntheticError
16
{
17
    /**
18
     * @var string
19
     */
20
    private $diff;
21
 
22
    public function __construct(string $message, int $code, string $file, int $line, array $trace, string $diff)
23
    {
24
        parent::__construct($message, $code, $file, $line, $trace);
25
        $this->diff = $diff;
26
    }
27
 
28
    public function getDiff(): string
29
    {
30
        return $this->diff;
31
    }
32
}