18 lines
368 B
PHP
18 lines
368 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @covers TransactionRoundDefiningUpdate
|
||
|
|
*/
|
||
|
|
class TransactionRoundDefiningUpdateTest extends PHPUnit_Framework_TestCase {
|
||
|
|
|
||
|
|
public function testDoUpdate() {
|
||
|
|
$ran = 0;
|
||
|
|
$update = new TransactionRoundDefiningUpdate( function () use ( &$ran ) {
|
||
|
|
$ran++;
|
||
|
|
} );
|
||
|
|
$this->assertSame( 0, $ran );
|
||
|
|
$update->doUpdate();
|
||
|
|
$this->assertSame( 1, $ran );
|
||
|
|
}
|
||
|
|
}
|