This change also adds some tested getters to the DiffOp class to improve testability of the class Change-Id: I26eafd791b9892f565a18d0502474ef9c24f9a29
20 lines
327 B
PHP
20 lines
327 B
PHP
<?php
|
|
|
|
/**
|
|
* @licence GNU GPL v2+
|
|
* @author Adam Shorland
|
|
*
|
|
* @group Diff
|
|
*/
|
|
class DiffTest extends MediaWikiTestCase {
|
|
|
|
/**
|
|
* @covers Diff::getEdits
|
|
*/
|
|
public function testGetEdits() {
|
|
$obj = new Diff( array(), array() );
|
|
$obj->edits = 'FooBarBaz';
|
|
$this->assertEquals( 'FooBarBaz', $obj->getEdits() );
|
|
}
|
|
|
|
}
|