WordPress.org

Make WordPress Core

Ticket #37523: 37523.patch

File 37523.patch, 2.0 KB (added by DylanAuty, 4 years ago)

Revised Patch based on suggestions/solutions offered.

  • tests/phpunit/includes/class-basic-object.php

     
    11<?php
     2/**
     3 * Unity Tests: Basic_Object cloass
     4 *
     5 * @package WordPress
     6 * @subpackage UnitTests
     7 * @since 4.7.0
     8 */
    29
     10/**
     11 * Class used to test accessing methods and properties
     12 *
     13 * @since 4.0.0
     14 */
    315class Basic_Object {
    416        private $foo = 'bar';
    517
  • tests/phpunit/includes/class-basic-subclass.php

     
    11<?php
     2/**
     3 * Unit Tests: Basic_Subclass class
     4 *
     5 * @package WordPress
     6 * @subpackage UnitTests
     7 * @since 4.7.0
     8 */
    29
     10/**
     11 * Class used to test accessing methods and properties.
     12 *
     13 * @since 4.0.0
     14 */
    315class Basic_Subclass extends Basic_Object {}
  • tests/phpunit/tests/basic.php

     
    11<?php
    22
    3 require_once dirname( dirname( __FILE__ ) ) . '/includes/class-basic-object.php';
    4 require_once dirname( dirname( __FILE__ ) ) . '/includes/class-basic-subclass.php';
    5 
    63/**
    74 * just make sure the test framework is working
    85 *
  • tests/phpunit/tests/functions.php

     
    11<?php
    22
     3require_once dirname( dirname( __FILE__ ) ) . '/includes/class-basic-object.php';
     4require_once dirname( dirname( __FILE__ ) ) . '/includes/class-basic-subclass.php';
     5
    36/**
    47 * @group functions.php
    58 */