Ticket #37523: 37523.2.patch
File 37523.2.patch, 2.0 KB (added by , 9 years ago) |
---|
-
tests/phpunit/includes/bootstrap.php
24 24 require_once $config_file_path; 25 25 require_once dirname( __FILE__ ) . '/functions.php'; 26 26 27 require_once dirname( __FILE__ ) . '/class-basic-object.php'; 28 require_once dirname( __FILE__ ) . '/class-basic-subclass.php'; 29 27 30 tests_reset__SERVER(); 28 31 29 32 define( 'WP_TESTS_TABLE_PREFIX', $table_prefix ); -
tests/phpunit/includes/class-basic-object.php
1 1 <?php 2 /** 3 * Unit Tests: Basic_Object cloass 4 * 5 * @package WordPress 6 * @subpackage UnitTests 7 * @since 4.7.0 8 */ 2 9 10 /** 11 * Class used to test accessing methods and properties 12 * 13 * @since 4.0.0 14 */ 3 15 class Basic_Object { 4 16 private $foo = 'bar'; 5 17 -
tests/phpunit/includes/class-basic-subclass.php
1 1 <?php 2 /** 3 * Unit Tests: Basic_Subclass class 4 * 5 * @package WordPress 6 * @subpackage UnitTests 7 * @since 4.7.0 8 */ 2 9 10 /** 11 * Class used to test accessing methods and properties. 12 * 13 * @since 4.0.0 14 */ 3 15 class Basic_Subclass extends Basic_Object {} -
tests/phpunit/tests/basic.php
1 1 <?php 2 2 3 require_once dirname( dirname( __FILE__ ) ) . '/includes/class-basic-object.php';4 require_once dirname( dirname( __FILE__ ) ) . '/includes/class-basic-subclass.php';5 6 3 /** 7 4 * just make sure the test framework is working 8 5 *