summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/diff/DiffTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/diff/DiffTest.php')
-rw-r--r--tests/phpunit/includes/diff/DiffTest.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/phpunit/includes/diff/DiffTest.php b/tests/phpunit/includes/diff/DiffTest.php
new file mode 100644
index 00000000..1911c82a
--- /dev/null
+++ b/tests/phpunit/includes/diff/DiffTest.php
@@ -0,0 +1,20 @@
+<?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() );
+ }
+
+}