wiki.techinc.nl/tests/phpunit/includes/diff/DiffTest.php
addshore 3d1fba6e72 Add tests for ArrayDiffFormatter and DiffOp
This change also adds some tested getters to
the DiffOp class to improve testability of the class

Change-Id: I26eafd791b9892f565a18d0502474ef9c24f9a29
2014-02-26 22:53:05 +01:00

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() );
}
}