wordpress-develop/tests/phpunit/includes
Sergey Biryukov c438bebad1 Tests: Correct the WP_Test_Stream::mkdir() method.
The method attempted to check if there is already a file with the same name, however the conditional used an undefined variable.

This commit prevents directory creation if a file or directory with the same name already exists, bringing consistency with the PHP `mkdir()` implementation.

Includes adding missing documentation for the method.

Reference: [https://www.php.net/manual/en/streamwrapper.mkdir.php PHP Manual: streamWrapper::mkdir()].

Follow-up to [49230].

Props david.binda, sadizaman, rajinsharwar, SergeyBiryukov.
Fixes #59406.

git-svn-id: https://develop.svn.wordpress.org/trunk@56998 602fd350-edb4-49c9-b593-d223f7449a82
2023-10-24 11:32:42 +00:00
..
factory General: Remove discouraged @return void annotations. 2023-10-16 15:15:14 +00:00
phpunit6 Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
abstract-testcase.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
bootstrap.php Code Modernization: Use dirname() with the $levels parameter. 2023-09-11 04:51:09 +00:00
class-basic-object.php Tests: Correct magic methods in Basic_Object. 2022-09-07 15:59:16 +00:00
class-basic-subclass.php
class-jsonserializable-object.php
class-wp-fake-block-type.php
class-wp-rest-test-configurable-controller.php
class-wp-rest-test-search-handler.php
class-wp-sitemaps-empty-test-provider.php
class-wp-sitemaps-large-test-provider.php
class-wp-sitemaps-test-provider.php
class-wp-test-stream.php Tests: Correct the WP_Test_Stream::mkdir() method. 2023-10-24 11:32:42 +00:00
exceptions.php
factory.php
functions.php Docs: Improve PHPCS comments general consistency. 2023-08-25 05:09:09 +00:00
install.php Docs: Improve PHPCS comments general consistency. 2023-08-25 05:09:09 +00:00
mock-fs.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
mock-image-editor.php Coding Standards: Remove superfluous blank lines at the end of various functions. 2023-09-08 10:01:14 +00:00
mock-invokable.php
mock-mailer.php
normalize-xml.xsl
object-cache.php General: Remove discouraged @return void annotations. 2023-10-16 15:15:14 +00:00
phpunit-adapter-testcase.php Build/Test Tools: Update PHPUnit Polyfills to version 1.1.0. 2023-08-21 15:53:04 +00:00
plural-form-function.php
spy-rest-server.php Code Modernization: Rename parameters that use reserved keywords in phpunit/includes/spy-rest-server.php. 2023-01-03 12:45:29 +00:00
testcase-ajax.php
testcase-canonical.php Tests: Correct references to set_up() and tear_down() in various DocBlocks. 2022-11-22 21:25:27 +00:00
testcase-rest-api.php Coding Standards: Use instanceof keyword instead of the is_a() function. 2023-08-03 12:08:30 +00:00
testcase-rest-controller.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:49:49 +00:00
testcase-rest-post-type-controller.php Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:26:01 +00:00
testcase-xml.php Docs: Improve PHPCS comments general consistency. 2023-08-25 05:09:09 +00:00
testcase-xmlrpc.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
testcase.php
trac.php Docs: Fix typo in TracTickets::isTracTicketClosed() description. 2022-02-20 10:12:37 +00:00
unregister-blocks-hooks.php Update editor related npm packages 2023-09-26 14:20:18 +00:00
utils.php Database: Remove support for the mysql extension. 2023-08-26 13:01:05 +00:00
wp-profiler.php Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:26:01 +00:00