Add @covers tags to ObjectFactoryTest
authorKunal Mehta <legoktm@gmail.com>
Tue, 11 Nov 2014 02:03:54 +0000 (18:03 -0800)
committerBryanDavis <bdavis@wikimedia.org>
Wed, 12 Nov 2014 17:17:36 +0000 (17:17 +0000)
Change-Id: I0130b133ef8261e43082d90b08cf2b9abf64ffc9

tests/phpunit/includes/libs/ObjectFactoryTest.php

index 1f88b12..8c2f12c 100644 (file)
@@ -21,6 +21,9 @@
 
 class ObjectFactoryTest extends PHPUnit_Framework_TestCase {
 
+       /**
+        * @covers ObjectFactory::getObjectFromSpec
+        */
        public function testClosureExpansionDisabled() {
                $obj = ObjectFactory::getObjectFromSpec( array(
                        'class' => 'ObjectFactoryTest_Fixture',
@@ -31,6 +34,9 @@ class ObjectFactoryTest extends PHPUnit_Framework_TestCase {
                $this->assertSame( 'unwrapped', $obj->args[0]() );
        }
 
+       /**
+        * @covers ObjectFactory::getObjectFromSpec
+        */
        public function testClosureExpansionEnabled() {
                $obj = ObjectFactory::getObjectFromSpec( array(
                        'class' => 'ObjectFactoryTest_Fixture',