RevisionUnitTest::testConstructFromArray @covers tags
[lhc/web/wiklou.git] / tests / phpunit / includes / RevisionUnitTest.php
index 89f5a0e..6a30335 100644 (file)
@@ -23,8 +23,10 @@ class RevisionUnitTest extends MediaWikiTestCase {
 
        /**
         * @dataProvider provideConstructFromArray
+        * @covers Revision::__construct
+        * @covers Revision::constructFromRowArray
         */
-       public function testConstructFromArray( $rowArray ) {
+       public function testConstructFromArray( array $rowArray ) {
                $rev = new Revision( $rowArray );
                $this->assertNotNull( $rev->getContent(), 'no content object available' );
                $this->assertEquals( CONTENT_MODEL_JAVASCRIPT, $rev->getContent()->getModel() );
@@ -56,6 +58,8 @@ class RevisionUnitTest extends MediaWikiTestCase {
 
        /**
         * @dataProvider provideConstructFromArrayThrowsExceptions
+        * @covers Revision::__construct
+        * @covers Revision::constructFromRowArray
         */
        public function testConstructFromArrayThrowsExceptions( $rowArray, Exception $expectedException ) {
                $this->setExpectedException(