wiki.techinc.nl/tests/phpunit/unit/includes/deferred/TransactionRoundDefiningUpdateTest.php
Umherirrender a1de8b8700 Tests: Mark more more closures as static
Result of a new sniff I25a17fb22b6b669e817317a0f45051ae9c608208

Bug: T274036
Change-Id: I695873737167a75f0d94901fa40383a33984ca55
2021-02-09 02:55:57 +00:00

17 lines
370 B
PHP

<?php
/**
* @covers TransactionRoundDefiningUpdate
*/
class TransactionRoundDefiningUpdateTest extends MediaWikiUnitTestCase {
public function testDoUpdate() {
$ran = 0;
$update = new TransactionRoundDefiningUpdate( static function () use ( &$ran ) {
$ran++;
} );
$this->assertSame( 0, $ran );
$update->doUpdate();
$this->assertSame( 1, $ran );
}
}