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
use const PHP_EOL;
13
use function sprintf;
14
 
15
/**
16
 * @internal This class is not covered by the backward compatibility promise for PHPUnit
17
 */
18
final class ComparisonMethodDoesNotExistException extends Exception
19
{
20
    public function __construct(string $className, string $methodName)
21
    {
22
        parent::__construct(
23
            sprintf(
24
                'Comparison method %s::%s() does not exist.',
25
                $className,
26
                $methodName
27
            ),
28
            0,
29
            null
30
        );
31
    }
32
 
33
    public function __toString(): string
34
    {
35
        return $this->getMessage() . PHP_EOL;
36
    }
37
}