mirror of
git://develop.git.wordpress.org/
synced 2025-02-07 16:10:43 +01:00
The `WP_UnitTestCase_Base::rmdir()` method selectively deletes files from a directory, skipping any paths from the `$ignore_files` property. This commit updates the method to remove the empty directory if there are no files left, bringing some parity with PHP native `rmdir()` function. Follow-up to [677/tests], [29120]. See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@54300 602fd350-edb4-49c9-b593-d223f7449a82