Changeset 60729 for trunk/tests/phpunit/tests/admin/wpUpgrader.php
- Timestamp:
- 09/11/2025 02:45:56 PM (4 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/admin/wpUpgrader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/wpUpgrader.php
r59257 r60729 171 171 public function test_flatten_dirlist_should_flatten_the_provided_directory_list( $expected, $nested_files, $path = '' ) { 172 172 $flatten_dirlist = new ReflectionMethod( self::$instance, 'flatten_dirlist' ); 173 $flatten_dirlist->setAccessible( true ); 173 if ( PHP_VERSION_ID < 80100 ) { 174 $flatten_dirlist->setAccessible( true ); 175 } 174 176 $actual = $flatten_dirlist->invoke( self::$instance, $nested_files, $path ); 175 $flatten_dirlist->setAccessible( false ); 177 if ( PHP_VERSION_ID < 80100 ) { 178 $flatten_dirlist->setAccessible( false ); 179 } 176 180 177 181 $this->assertSameSetsWithIndex( $expected, $actual );
Note: See TracChangeset
for help on using the changeset viewer.