@@ -17,8 +17,6 @@ class MockDelegateFunctionBuilderTest extends TestCase
17
17
18
18
/**
19
19
* Test build() defines a class.
20
- *
21
- * @test
22
20
*/
23
21
public function testBuild ()
24
22
{
@@ -29,8 +27,6 @@ public function testBuild()
29
27
30
28
/**
31
29
* Test build() would never create the same class name for different signatures.
32
- *
33
- * @test
34
30
*/
35
31
public function testDiverseSignaturesProduceDifferentClasses ()
36
32
{
@@ -53,8 +49,6 @@ public function testDiverseSignaturesProduceDifferentClasses()
53
49
54
50
/**
55
51
* Test build() would create the same class name for identical signatures.
56
- *
57
- * @test
58
52
*/
59
53
public function testSameSignaturesProduceSameClass ()
60
54
{
@@ -72,7 +66,6 @@ public function testSameSignaturesProduceSameClass()
72
66
/**
73
67
* Tests declaring a class with enabled backupStaticAttributes.
74
68
*
75
- * @test
76
69
* @backupStaticAttributes enabled
77
70
* @dataProvider provideTestBackupStaticAttributes
78
71
*
@@ -100,29 +93,17 @@ public static function provideTestBackupStaticAttributes()
100
93
/**
101
94
* Tests deserialization.
102
95
*
103
- * @test
104
96
* @runInSeparateProcess
105
- * @dataProvider provideTestDeserializationInNewProcess
106
97
*
107
98
* @doesNotPerformAssertions
108
99
*/
109
- public function testDeserializationInNewProcess ($ data )
110
- {
111
- unserialize ($ data );
112
- }
113
-
114
- /**
115
- * Returns test cases for testDeserializationInNewProcess().
116
- *
117
- * @return array Test cases.
118
- */
119
- public function provideTestDeserializationInNewProcess ()
100
+ public function testDeserializationInNewProcess ()
120
101
{
121
102
$ builder = new MockDelegateFunctionBuilder ();
122
103
$ builder ->build ("min " );
104
+
105
+ $ data = serialize ($ this ->getMockForAbstractClass ($ builder ->getFullyQualifiedClassName ()));
123
106
124
- return [
125
- [serialize ($ this ->getMockForAbstractClass ($ builder ->getFullyQualifiedClassName ()))]
126
- ];
107
+ unserialize ($ data );
127
108
}
128
109
}
0 commit comments