File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,17 @@ public static function provideFoobar()
56
56
);
57
57
}
58
58
59
+ /**
60
+ * Can be used as data provider to get bare/not-bare repositories.
61
+ */
62
+ public static function provideEmpty ()
63
+ {
64
+ return array (
65
+ array (self ::createEmptyRepository ()),
66
+ array (self ::createEmptyRepository (false ))
67
+ );
68
+ }
69
+
59
70
/**
60
71
* Creates a fixture test repository.
61
72
*
Original file line number Diff line number Diff line change @@ -19,6 +19,15 @@ class ReferenceTest extends AbstractTest
19
19
{
20
20
private $ references ;
21
21
22
+ /**
23
+ * @dataProvider provideEmpty
24
+ */
25
+ public function testEmptyRepository ($ repository )
26
+ {
27
+ $ this ->assertCount (0 , $ repository ->getReferences ());
28
+ $ this ->assertEquals (array (), $ repository ->getReferences ()->getAll ());
29
+ }
30
+
22
31
/**
23
32
* @dataProvider provideFoobar
24
33
*/
You can’t perform that action at this time.
0 commit comments