Browse Source

Add coverage annotation to improve the meaningfulness of the coverage

Marc Würth 7 years ago
parent
commit
db62509511
1 changed files with 8 additions and 1 deletions
  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
 class CollectionTest extends TestCase
 {
 {
@@ -2173,6 +2175,7 @@ class CollectionTest extends TestCase
      *
      *
      * @dataProvider simpleProvider
      * @dataProvider simpleProvider
      * @return void
      * @return void
+     * @covers ::takeLast
      */
      */
     public function testLastN($data)
     public function testLastN($data)
     {
     {
@@ -2187,6 +2190,7 @@ class CollectionTest extends TestCase
      *
      *
      * @dataProvider simpleProvider
      * @dataProvider simpleProvider
      * @return void
      * @return void
+     * @covers ::takeLast
      */
      */
     public function testLasNtWithOverflow($data)
     public function testLasNtWithOverflow($data)
     {
     {
@@ -2201,6 +2205,7 @@ class CollectionTest extends TestCase
      *
      *
      * @dataProvider simpleProvider
      * @dataProvider simpleProvider
      * @return void
      * @return void
+     * @covers ::takeLast
      */
      */
     public function testLasNtWithOddData($data)
     public function testLasNtWithOddData($data)
     {
     {
@@ -2214,6 +2219,7 @@ class CollectionTest extends TestCase
      * Tests the takeLast() with countable collection
      * Tests the takeLast() with countable collection
      *
      *
      * @return void
      * @return void
+     * @covers ::takeLast
      */
      */
     public function testLasNtWithCountable()
     public function testLasNtWithCountable()
     {
     {
@@ -2231,6 +2237,7 @@ class CollectionTest extends TestCase
      *
      *
      * @dataProvider simpleProvider
      * @dataProvider simpleProvider
      * @return void
      * @return void
+     * @covers ::takeLast
      */
      */
     public function testLasNtWithNegative($data)
     public function testLasNtWithNegative($data)
     {
     {