Changeset 49001
- Timestamp:
- 09/19/2020 09:11:23 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r48939 r49001 71 71 parent::setUpBeforeClass(); 72 72 73 $c = get_called_class(); 74 if ( ! method_exists( $c, 'wpSetUpBeforeClass' ) ) { 75 self::commit_transaction(); 76 return; 77 } 78 79 call_user_func( array( $c, 'wpSetUpBeforeClass' ), self::factory() ); 73 $class = get_called_class(); 74 75 if ( method_exists( $class, 'wpSetUpBeforeClass' ) ) { 76 call_user_func( array( $class, 'wpSetUpBeforeClass' ), self::factory() ); 77 } 80 78 81 79 self::commit_transaction(); … … 91 89 self::flush_cache(); 92 90 93 $c = get_called_class(); 94 if ( ! method_exists( $c, 'wpTearDownAfterClass' ) ) { 95 self::commit_transaction(); 96 return; 97 } 98 99 call_user_func( array( $c, 'wpTearDownAfterClass' ) ); 91 $class = get_called_class(); 92 93 if ( method_exists( $class, 'wpTearDownAfterClass' ) ) { 94 call_user_func( array( $class, 'wpTearDownAfterClass' ) ); 95 } 100 96 101 97 self::commit_transaction();
Note: See TracChangeset
for help on using the changeset viewer.