Skip to content

Commit f80068e

Browse files
committed
Tests: Require Basic_Object and Basic_Subclass files earlier in call stack.
This ensures compatibility with third-party tools using these classes in their test suites, after [38285]. Props DylanAuty, Frank Klein, TimothyBlynJacobs. Fixes #37523. git-svn-id: https://develop.svn.wordpress.org/trunk@38445 602fd350-edb4-49c9-b593-d223f7449a82
1 parent caf0e90 commit f80068e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/phpunit/includes/functions.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?php
22

3+
require_once dirname( __FILE__ ) . '/class-basic-object.php';
4+
require_once dirname( __FILE__ ) . '/class-basic-subclass.php';
5+
36
/**
47
* Resets various `$_SERVER` variables that can get altered during tests.
58
*/

tests/phpunit/tests/basic.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
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
*

0 commit comments

Comments
 (0)