File tree Expand file tree Collapse file tree 1 file changed +5
-25
lines changed Expand file tree Collapse file tree 1 file changed +5
-25
lines changed Original file line number Diff line number Diff line change 11
11
12
12
class FunctionsTest extends TestCase
13
13
{
14
- public function testGetPool ()
15
- {
16
- $ pool = Worker \pool ();
17
-
18
- $ this ->assertInstanceOf (Pool::class, $ pool );
19
- }
20
-
21
- /**
22
- * @depends testGetPool
23
- */
24
- public function testSetPool ()
14
+ public function testPool ()
25
15
{
26
16
$ pool = $ this ->getMock (Pool::class);
27
17
@@ -31,7 +21,7 @@ public function testSetPool()
31
21
}
32
22
33
23
/**
34
- * @depends testSetPool
24
+ * @depends testPool
35
25
*/
36
26
public function testEnqueue ()
37
27
{
@@ -53,7 +43,7 @@ public function testEnqueue()
53
43
}
54
44
55
45
/**
56
- * @depends testSetPool
46
+ * @depends testPool
57
47
*/
58
48
public function testGet ()
59
49
{
@@ -67,17 +57,7 @@ public function testGet()
67
57
$ worker = Worker \get ();
68
58
}
69
59
70
- public function testGetFactory ()
71
- {
72
- $ factory = Worker \factory ();
73
-
74
- $ this ->assertInstanceOf (WorkerFactory::class, $ factory );
75
- }
76
-
77
- /**
78
- * @depends testGetFactory
79
- */
80
- public function testSetFactory ()
60
+ public function testFactory ()
81
61
{
82
62
$ factory = $ this ->getMock (WorkerFactory::class);
83
63
@@ -87,7 +67,7 @@ public function testSetFactory()
87
67
}
88
68
89
69
/**
90
- * @depends testSetFactory
70
+ * @depends testFactory
91
71
*/
92
72
public function testCreate ()
93
73
{
You can’t perform that action at this time.
0 commit comments