From 9ed27339b19eb07aa01bcb7e593be2e11f928f1e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 22 Nov 2022 15:09:33 +0000 Subject: [PATCH] Tests: Add a `public` visibility to `wp_filesize()` tests. Follow-up to [52010], [52837], [52932], [54861]. See #57171. git-svn-id: https://develop.svn.wordpress.org/trunk@54862 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/functions/wpFilesize.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/functions/wpFilesize.php b/tests/phpunit/tests/functions/wpFilesize.php index f65aa90872..f0e510ddc5 100644 --- a/tests/phpunit/tests/functions/wpFilesize.php +++ b/tests/phpunit/tests/functions/wpFilesize.php @@ -11,7 +11,7 @@ class Tests_Functions_wpFilesize extends WP_UnitTestCase { /** * @ticket 49412 */ - function test_wp_filesize() { + public function test_wp_filesize() { $file = DIR_TESTDATA . '/images/test-image-upside-down.jpg'; $this->assertSame( filesize( $file ), wp_filesize( $file ) ); @@ -20,7 +20,7 @@ class Tests_Functions_wpFilesize extends WP_UnitTestCase { /** * @ticket 49412 */ - function test_wp_filesize_filters() { + public function test_wp_filesize_filters() { $file = DIR_TESTDATA . '/images/test-image-upside-down.jpg'; add_filter( @@ -45,7 +45,7 @@ class Tests_Functions_wpFilesize extends WP_UnitTestCase { /** * @ticket 49412 */ - function test_wp_filesize_with_nonexistent_file() { + public function test_wp_filesize_with_nonexistent_file() { $file = 'nonexistent/file.jpg'; $this->assertSame( 0, wp_filesize( $file ) );