diff --git a/tests/phpunit/tests/hooks/addFilter.php b/tests/phpunit/tests/hooks/addFilter.php index afa526b484..df4db364c5 100644 --- a/tests/phpunit/tests/hooks/addFilter.php +++ b/tests/phpunit/tests/hooks/addFilter.php @@ -1,6 +1,5 @@ assertSame( '1-134-234', $value ); } - public function _filter_remove_and_add1( $string ) { - return $string . '1'; + public function _filter_remove_and_add1( $value ) { + return $value . '1'; } - public function _filter_remove_and_add2( $string ) { + public function _filter_remove_and_add2( $value ) { $this->hook->remove_filter( 'remove_and_add', array( $this, '_filter_remove_and_add2' ), 11 ); $this->hook->add_filter( 'remove_and_add', array( $this, '_filter_remove_and_add2' ), 11, 1 ); - return $string . '2'; + return $value . '2'; } - public function _filter_remove_and_recurse_and_add2( $string ) { + public function _filter_remove_and_recurse_and_add2( $value ) { $this->hook->remove_filter( 'remove_and_add', array( $this, '_filter_remove_and_recurse_and_add2' ), 11 ); - $string .= '-' . $this->hook->apply_filters( '', array() ) . '-'; + $value .= '-' . $this->hook->apply_filters( '', array() ) . '-'; $this->hook->add_filter( 'remove_and_add', array( $this, '_filter_remove_and_recurse_and_add2' ), 11, 1 ); - return $string . '2'; + return $value . '2'; } - public function _filter_remove_and_add3( $string ) { - return $string . '3'; + public function _filter_remove_and_add3( $value ) { + return $value . '3'; } - public function _filter_remove_and_add4( $string ) { - return $string . '4'; + public function _filter_remove_and_add4( $value ) { + return $value . '4'; } public function test_remove_and_add_action() {