diff options
author | C. Scott Ananian <cscott@cscott.net> | 2024-02-09 17:27:00 -0500 |
---|---|---|
committer | C. Scott Ananian <cananian@wikimedia.org> | 2024-02-20 17:13:28 +0000 |
commit | 72c4945a724267ba65d3df08ea34bbbf1aa59aa7 (patch) | |
tree | c2fdee1b1b8c17bbda574244ecd06abb3c82c071 /tests/phpunit/includes/export/ExportTest.php | |
parent | 6039650aedcf902c69b36e6587ca6227ead71903 (diff) | |
download | mediawikicore-72c4945a724267ba65d3df08ea34bbbf1aa59aa7.tar.gz mediawikicore-72c4945a724267ba65d3df08ea34bbbf1aa59aa7.zip |
[ParserOutput] Rename $mText to $mRawText and ::setText() to ::setRawText()
ParserOutput::getText() is not a simple getter, but does
transformations on the "text" of the ParserOutput; the simple getter
is named ::getRawText().
To maintain consistency, rename ParserOutput::setText() to
::setRawText() and the property name ParserOutput::$mText to
::$mRawText so future readers are not confused.
The JSON property name as it appears in the serialized ParserCache
is left as 'Text' so that we don't have any forward- or backward-
rollback issues.
Change-Id: I3ef34814ab9473cc70d0a6806e8c5a4a02b73491
Diffstat (limited to 'tests/phpunit/includes/export/ExportTest.php')
-rw-r--r-- | tests/phpunit/includes/export/ExportTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/export/ExportTest.php b/tests/phpunit/includes/export/ExportTest.php index c527c6c4dce3..8b4092850141 100644 --- a/tests/phpunit/includes/export/ExportTest.php +++ b/tests/phpunit/includes/export/ExportTest.php @@ -86,7 +86,7 @@ class ExportTest extends MediaWikiLangTestCase { ContentParseParams $cpoParams, ParserOutput &$output ) { - $output->setText( json_encode( $content->getNativeData() ) ); + $output->setRawText( json_encode( $content->getNativeData() ) ); } private function getTestContent( string $blob ): Content { |