浏览代码

Add coverage annotation to improve the meaningfulness of the coverage

Marc Würth 7 年之前
父节点
当前提交
db62509511
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      tests/TestCase/Collection/CollectionTest.php

+ 8 - 1
tests/TestCase/Collection/CollectionTest.php

@@ -82,7 +82,9 @@ class CountableIterator extends \IteratorIterator implements \Countable
 }
 
 /**
- * CollectionTest
+ * Collection Test
+ *
+ * @coversDefaultClass \Cake\Collection\Collection
  */
 class CollectionTest extends TestCase
 {
@@ -2173,6 +2175,7 @@ class CollectionTest extends TestCase
      *
      * @dataProvider simpleProvider
      * @return void
+     * @covers ::takeLast
      */
     public function testLastN($data)
     {
@@ -2187,6 +2190,7 @@ class CollectionTest extends TestCase
      *
      * @dataProvider simpleProvider
      * @return void
+     * @covers ::takeLast
      */
     public function testLasNtWithOverflow($data)
     {
@@ -2201,6 +2205,7 @@ class CollectionTest extends TestCase
      *
      * @dataProvider simpleProvider
      * @return void
+     * @covers ::takeLast
      */
     public function testLasNtWithOddData($data)
     {
@@ -2214,6 +2219,7 @@ class CollectionTest extends TestCase
      * Tests the takeLast() with countable collection
      *
      * @return void
+     * @covers ::takeLast
      */
     public function testLasNtWithCountable()
     {
@@ -2231,6 +2237,7 @@ class CollectionTest extends TestCase
      *
      * @dataProvider simpleProvider
      * @return void
+     * @covers ::takeLast
      */
     public function testLasNtWithNegative($data)
     {