Skip to content

Commit

Permalink
Closes #4071
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 12, 2020
1 parent b70a946 commit ca30d36
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog-9.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ All notable changes of the PHPUnit 9.1 release series are documented in this fil
* Implemented [#4062](https://github.com/sebastianbergmann/phpunit/issues/4062): Deprecate `assertNotIsReadable()`
* Implemented [#4065](https://github.com/sebastianbergmann/phpunit/issues/4065): Deprecate `assertNotIsWritable()`
* Implemented [#4068](https://github.com/sebastianbergmann/phpunit/issues/4068): Deprecate `assertDirectoryNotExists()`
* Implemented [#4071](https://github.com/sebastianbergmann/phpunit/issues/4071): Deprecate `assertDirectoryNotIsReadable()`

[9.1.0]: https://github.com/sebastianbergmann/phpunit/compare/9.0...master
6 changes: 6 additions & 0 deletions src/Framework/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -836,9 +836,15 @@ public static function assertDirectoryIsNotReadable(string $directory, string $m
*
* @throws ExpectationFailedException
* @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4071
*/
public static function assertDirectoryNotIsReadable(string $directory, string $message = ''): void
{
self::createWarning('assertDirectoryNotIsReadable() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertDirectoryIsNotReadable() instead.');

self::assertDirectoryExists($directory, $message);
self::assertIsNotReadable($directory, $message);
}
Expand Down
3 changes: 3 additions & 0 deletions src/Framework/Assert/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,9 @@ function assertDirectoryIsNotReadable(string $directory, string $message = ''):
* @throws ExpectationFailedException
* @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4071
* @see Assert::assertDirectoryNotIsReadable
*/
function assertDirectoryNotIsReadable(string $directory, string $message = ''): void
Expand Down

0 comments on commit ca30d36

Please sign in to comment.