Changeset 55313
- Timestamp:
- 02/13/2023 02:20:30 PM (20 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/passwordHash.php
r55312 r55313 6 6 * @covers PasswordHash 7 7 */ 8 class Tests_ PasswordHash extends WP_UnitTestCase {8 class Tests_User_PasswordHash extends WP_UnitTestCase { 9 9 10 10 public static function set_up_before_class() { … … 15 15 16 16 /** 17 * Tests that PasswordHash::gensalt_blowfish() does not throw a deprecation 18 * notice on PHP 8.1 for "Implicit conversion from float to int loses precision". 17 * Tests that PasswordHash::gensalt_blowfish() does not throw a deprecation notice on PHP 8.1. 19 18 * 20 * Should this test fail, it will produce an error "E" in the results. 19 * The notice that we should not see: 20 * `Deprecated: Implicit conversion from float to int loses precision`. 21 21 * 22 22 * @ticket 56340 … … 25 25 * 26 26 * @requires PHP 8.1 27 * @doesNotPerformAssertions 27 28 */ 28 public function test_gensalt_blowfish_should_not_throw_deprecation_notice_in_php81() { 29 $this->expectNotToPerformAssertions(); 30 31 $hasher = new PasswordHash( 8, true ); 32 $hasher->gensalt_blowfish( 'a password string' ); 29 public function test_gensalt_blowfish_should_not_throw_deprecation_notice_on_php81() { 30 $hasher = new PasswordHash( 8, true ); 31 $hasher->gensalt_blowfish( 'a password string' ); 33 32 } 34 33
Note: See TracChangeset
for help on using the changeset viewer.