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\Util;
11
 
12
/**
13
 * @deprecated Use ExcludeList instead
14
 *
15
 * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
16
 */
17
final class Blacklist
18
{
19
    public static function addDirectory(string $directory): void
20
    {
21
        ExcludeList::addDirectory($directory);
22
    }
23
 
24
    /**
25
     * @throws Exception
26
     *
27
     * @return string[]
28
     */
29
    public function getBlacklistedDirectories(): array
30
    {
31
        return (new ExcludeList)->getExcludedDirectories();
32
    }
33
 
34
    /**
35
     * @throws Exception
36
     */
37
    public function isBlacklisted(string $file): bool
38
    {
39
        return (new ExcludeList)->isExcluded($file);
40
    }
41
}