| 148 |
lars |
1 |
<?php declare(strict_types=1);
|
|
|
2 |
/*
|
|
|
3 |
* This file is part of phpunit/php-code-coverage.
|
|
|
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 SebastianBergmann\CodeCoverage\Driver;
|
|
|
11 |
|
|
|
12 |
use function sprintf;
|
|
|
13 |
use RuntimeException;
|
|
|
14 |
use SebastianBergmann\CodeCoverage\Exception;
|
|
|
15 |
|
|
|
16 |
final class PathExistsButIsNotDirectoryException extends RuntimeException implements Exception
|
|
|
17 |
{
|
|
|
18 |
public function __construct(string $path)
|
|
|
19 |
{
|
|
|
20 |
parent::__construct(sprintf('"%s" exists but is not a directory', $path));
|
|
|
21 |
}
|
|
|
22 |
}
|