Skip to content

Commit

Permalink
Closes #4063
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 4, 2020
1 parent 7f7d646 commit e70df03
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 38 deletions.
1 change: 1 addition & 0 deletions ChangeLog-10.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes of the PHPUnit 10.0 release series are documented in this fi

### Removed

* [#4063](https://github.com/sebastianbergmann/phpunit/issues/4063): Remove `assertNotIsReadable()`
* [#4142](https://github.com/sebastianbergmann/phpunit/issues/4142): Remove Prophecy integration

[10.0.0]: https://github.com/sebastianbergmann/phpunit/compare/9.5...master
17 changes: 0 additions & 17 deletions src/Framework/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -749,23 +749,6 @@ public static function assertIsNotReadable(string $filename, string $message = '
static::assertThat($filename, new LogicalNot(new IsReadable), $message);
}

/**
* Asserts that a file/dir exists and is not readable.
*
* @throws ExpectationFailedException
* @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4062
*/
public static function assertNotIsReadable(string $filename, string $message = ''): void
{
self::createWarning('assertNotIsReadable() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertIsNotReadable() instead.');

static::assertThat($filename, new LogicalNot(new IsReadable), $message);
}

/**
* Asserts that a file/dir exists and is writable.
*
Expand Down
21 changes: 0 additions & 21 deletions src/Framework/Assert/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -760,27 +760,6 @@ function assertIsNotReadable(string $filename, string $message = ''): void
}
}

if (!function_exists('PHPUnit\Framework\assertNotIsReadable')) {
/**
* Asserts that a file/dir exists and is not readable.
*
* @throws ExpectationFailedException
* @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
*
* @codeCoverageIgnore
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/4062
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see Assert::assertNotIsReadable
*/
function assertNotIsReadable(string $filename, string $message = ''): void
{
Assert::assertNotIsReadable(...func_get_args());
}
}

if (!function_exists('PHPUnit\Framework\assertIsWritable')) {
/**
* Asserts that a file/dir exists and is writable.
Expand Down

0 comments on commit e70df03

Please sign in to comment.