wiki.techinc.nl/tests/phpunit/unit/includes/Storage/PreparedEditTest.php
Reedy eb41565a9a Tests: Start marking some closures as static
Bug: T274036
Change-Id: Ib738ecd3bc23d34900bc268c8246702ac3655746
2021-02-06 19:57:42 +00:00

21 lines
450 B
PHP

<?php
namespace MediaWiki\Edit;
use ParserOutput;
/**
* @covers \MediaWiki\Edit\PreparedEdit
*/
class PreparedEditTest extends \MediaWikiUnitTestCase {
public function testCallback() {
$output = new ParserOutput();
$edit = new PreparedEdit();
$edit->parserOutputCallback = static function () {
return new ParserOutput();
};
$this->assertEquals( $output, $edit->getOutput() );
$this->assertEquals( $output, $edit->output );
}
}