Skip to content

Commit

Permalink
Coding Standards: Rename some files and classes in `phpunit/tests/fun…
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyBiryukov committed May 10, 2020
1 parent c860753 commit c395d6f
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 20 deletions.
@@ -1,12 +1,12 @@
<?php

/*
* Validate that's badly named charsets always return the correct format for UTF-8 and ISO-8859-1
* Validate that badly named charsets always return the correct format for UTF-8 and ISO-8859-1.
*
* @since 4.8.0
*/

class Tests_Functions_canonical_charset extends WP_UnitTestCase {
class Tests_Functions_CanonicalCharset extends WP_UnitTestCase {

public function test_utf_8_lower() {
$this->assertEquals( 'UTF-8', _canonical_charset( 'utf-8' ) );
Expand Down
Expand Up @@ -6,7 +6,7 @@
* @ticket 8497
* @ticket 38101
*/
class Tests_Cleanup_Header_Comment extends WP_UnitTestCase {
class Tests_Functions_CleanupHeaderComment extends WP_UnitTestCase {
/**
* Test cleanup header of header comment.
*
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/tests/functions/deprecated.php
Expand Up @@ -5,10 +5,10 @@
*
* @package WordPress
* @subpackage Unit Tests
* @since 3.5
* @since 3.5.0
* @group deprecated
*/
class Test_Functions_Deprecated extends WP_UnitTestCase {
class Tests_Functions_Deprecated extends WP_UnitTestCase {

/**
* List of functions that have been passed through _deprecated_function()
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/getStatusHeaderDesc.php
Expand Up @@ -7,7 +7,7 @@
*
* @group functions.php
*/
class Tests_Functions_get_status_header_desc extends WP_UnitTestCase {
class Tests_Functions_GetStatusHeaderDesc extends WP_UnitTestCase {

/**
* @dataProvider _status_strings
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/isNewDay.php
Expand Up @@ -6,7 +6,7 @@
*
* @group functions.php
*/
class Tests_Functions_is_new_date extends WP_UnitTestCase {
class Tests_Functions_IsNewDate extends WP_UnitTestCase {

/**
* @ticket 46627
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/isSerializedString.php
Expand Up @@ -6,7 +6,7 @@
* @group functions.php
* @ticket 42870
*/
class Tests_Functions_Is_Serialized_String extends WP_UnitTestCase {
class Tests_Functions_IsSerializedString extends WP_UnitTestCase {

/**
* Data provider method for testing `is_serialized_string()`.
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/numberFormatI18n.php
Expand Up @@ -6,7 +6,7 @@
* @group functions.php
* @group i18n
*/
class Tests_Functions_Number_Format_I18n extends WP_UnitTestCase {
class Tests_Functions_NumberFormatI18n extends WP_UnitTestCase {
public function test_should_fall_back_to_number_format_when_wp_locale_is_not_set() {
$locale = clone $GLOBALS['wp_locale'];
$GLOBALS['wp_locale'] = null;
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/pluginBasename.php
Expand Up @@ -6,7 +6,7 @@
* @group functions.php
* @group plugins
*/
class Tests_Plugin_Basename extends WP_UnitTestCase {
class Tests_Functions_PluginBasename extends WP_UnitTestCase {

/**
* @var array
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/sizeFormat.php
Expand Up @@ -6,7 +6,7 @@
* @group functions.php
* @ticket 36635
*/
class Tests_Functions_Size_Format extends WP_UnitTestCase {
class Tests_Functions_SizeFormat extends WP_UnitTestCase {
public function _data_size_format() {
return array(
array( array(), 0, false ),
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/underscoreReturn.php
Expand Up @@ -6,7 +6,7 @@
*
* @group functions.php
*/
class Tests_Functions_Underscore_Return extends WP_UnitTestCase {
class Tests_Functions_UnderscoreReturn extends WP_UnitTestCase {

public function test__return_true() {
$this->assertTrue( __return_true() );
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/wpArraySliceAssoc.php
Expand Up @@ -8,7 +8,7 @@
* @covers wp_array_slice_assoc
* @group functions.php
*/
class Tests_Functions_WpArraySliceAssoc extends WP_UnitTestCase {
class Tests_Functions_wpArraySliceAssoc extends WP_UnitTestCase {

/**
* Test wp_array_slice_assoc().
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/wpAuthCheck.php
Expand Up @@ -5,7 +5,7 @@
*
* @group functions.php
*/
class Tests_Functions_WP_Auth_Check extends WP_UnitTestCase {
class Tests_Functions_wpAuthCheck extends WP_UnitTestCase {

/**
* Run with user not logged in.
Expand Down
Expand Up @@ -7,7 +7,7 @@
'echo' => 1, 'order' => 'DESC',
);
*/
class Tests_Get_Archives extends WP_UnitTestCase {
class Tests_Functions_wpGetArchives extends WP_UnitTestCase {
protected static $post_ids;
protected $month_url;
protected $year_url;
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/wpGetMimeTypes.php
Expand Up @@ -5,7 +5,7 @@
*
* @group functions.php
*/
class Tests_wp_get_mime_types extends WP_UnitTestCase {
class Tests_Functions_wpGetMimeTypes extends WP_UnitTestCase {

/**
* @ticket 47701
Expand Down
Expand Up @@ -5,7 +5,7 @@
*
* @group functions.php
*/
class Tests_Functions_ListFilter extends WP_UnitTestCase {
class Tests_Functions_wpListFilter extends WP_UnitTestCase {
var $object_list = array();
var $array_list = array();

Expand Down
3 changes: 2 additions & 1 deletion tests/phpunit/tests/functions/wpListUtil.php
Expand Up @@ -3,7 +3,8 @@
/**
* @group functions.php
*/
class Tests_WP_List_Util extends WP_UnitTestCase {
class Tests_Functions_wpListUtil extends WP_UnitTestCase {

public function data_test_wp_list_pluck() {
return array(
'arrays' => array(
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/wpRemoteFopen.php
Expand Up @@ -4,7 +4,7 @@
* @group external-http
* @group functions.php
*/
class Tests_Functions_wp_remote_fopen extends WP_UnitTestCase {
class Tests_Functions_wpRemoteFopen extends WP_UnitTestCase {

/**
* @ticket 48845
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/wpValidateBoolean.php
Expand Up @@ -6,7 +6,7 @@
* @covers ::wp_validate_boolean
* @group functions.php
*/
class Tests_Functions_WpValidateBoolean extends WP_UnitTestCase {
class Tests_Functions_wpValidateBoolean extends WP_UnitTestCase {
/**
* Provides test scenarios for all possible scenarios in wp_validate_boolean().
*
Expand Down

0 comments on commit c395d6f

Please sign in to comment.