Skip to content

Commit edac03c

Browse files
committed
DefaultFixture class improvements
1 parent e23b8c4 commit edac03c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/Test/DefaultFixture.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ class DefaultFixture
88
{
99
private static $data;
1010

11+
/**
12+
* @return array
13+
*/
1114
public static function getArray()
1215
{
1316
if (self::$data === null) {
@@ -16,6 +19,9 @@ public static function getArray()
1619
return self::$data;
1720
}
1821

22+
/**
23+
* @return object[]
24+
*/
1925
public static function getObjects()
2026
{
2127
$objects = [];
@@ -25,8 +31,19 @@ public static function getObjects()
2531
return $objects;
2632
}
2733

34+
/**
35+
* @return ObjectCollection
36+
*/
2837
public static function getCollection()
2938
{
3039
return new ObjectCollection(self::getObjects());
3140
}
41+
42+
/**
43+
* @return int
44+
*/
45+
public static function getTotalCount()
46+
{
47+
return count(self::getArray());
48+
}
3249
}

0 commit comments

Comments
 (0)