diff --git a/ChangeLog-10.0.md b/ChangeLog-10.0.md index 7c1ac0e45bb..b082a8eb37d 100644 --- a/ChangeLog-10.0.md +++ b/ChangeLog-10.0.md @@ -17,5 +17,6 @@ All notable changes of the PHPUnit 10.0 release series are documented in this fi * [#4090](https://github.com/sebastianbergmann/phpunit/issues/4090): Remove `assertNotRegExp()` * [#4092](https://github.com/sebastianbergmann/phpunit/issues/4092): Remove `assertEqualXMLStructure()` * [#4142](https://github.com/sebastianbergmann/phpunit/issues/4142): Remove Prophecy integration +* [#4272](https://github.com/sebastianbergmann/phpunit/issues/4272): Remove `PHPUnit\Util\Blacklist` [10.0.0]: https://github.com/sebastianbergmann/phpunit/compare/9.5...master diff --git a/src/Util/Blacklist.php b/src/Util/Blacklist.php deleted file mode 100644 index 3b416e142a8..00000000000 --- a/src/Util/Blacklist.php +++ /dev/null @@ -1,41 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -namespace PHPUnit\Util; - -/** - * @deprecated Use ExcludeList instead - * - * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit - */ -final class Blacklist -{ - public static function addDirectory(string $directory): void - { - ExcludeList::addDirectory($directory); - } - - /** - * @throws Exception - * - * @return string[] - */ - public function getBlacklistedDirectories(): array - { - return (new ExcludeList)->getExcludedDirectories(); - } - - /** - * @throws Exception - */ - public function isBlacklisted(string $file): bool - { - return (new ExcludeList)->isExcluded($file); - } -}