@@ -46,13 +46,6 @@ use PHPUnit\Framework;
46
46
47
47
final class ExampleTest extends Framework\TestCase
48
48
{
49
- private $prophecy;
50
-
51
- protected function setUp()
52
- {
53
- $this->prophecy = $this->prophesize(SomeModel::class);
54
- }
55
-
56
49
public function testSomething(): void
57
50
{
58
51
$prophecy = $this->prophesize(SomeModel::class);
@@ -61,26 +54,6 @@ final class ExampleTest extends Framework\TestCase
61
54
62
55
// ...
63
56
}
64
-
65
- public function testSomethingElse(): void
66
- {
67
- $testDouble = $this->prophecy->reveal();
68
-
69
- // ...
70
- }
71
-
72
- public function testSomethingDifferent(): void
73
- {
74
- $testDouble = $this->createProphecy()->reveal();
75
-
76
- // ...
77
- }
78
-
79
- private function createProphecy()
80
- {
81
- return $this->prophesize(SomeModel::class);
82
- }
83
-
84
57
}
85
58
```
86
59
@@ -95,13 +68,6 @@ use PHPUnit\Framework;
95
68
96
69
final class ExampleTest extends Framework\TestCase
97
70
{
98
- private $prophecy;
99
-
100
- protected function setUp()
101
- {
102
- $this->prophecy = $this->prophesize()->willExtend(SomeModel::class);
103
- }
104
-
105
71
public function testSomething(): void
106
72
{
107
73
$prophecy = $this->prophesize()->willExtend(SomeModel::class);
@@ -110,25 +76,6 @@ final class ExampleTest extends Framework\TestCase
110
76
111
77
// ...
112
78
}
113
-
114
- public function testSomethingElse(): void
115
- {
116
- $testDouble = $this->prophecy->reveal();
117
-
118
- // ...
119
- }
120
-
121
- public function testSomethingDifferent(): void
122
- {
123
- $testDouble = $this->createProphecy()->reveal();
124
-
125
- // ...
126
- }
127
-
128
- private function createProphecy()
129
- {
130
- return $this->prophesize(SomeModel::class)->willExtend(SomeInterface::class);
131
- }
132
79
}
133
80
```
134
81
@@ -143,13 +90,6 @@ use PHPUnit\Framework;
143
90
144
91
final class ExampleTest extends Framework\TestCase
145
92
{
146
- private $prophecy;
147
-
148
- protected function setUp()
149
- {
150
- $this->prophecy = $this->prophesize(SomeModel::class)->willImplement(SomeInterface::class);
151
- }
152
-
153
93
public function testSomething(): void
154
94
{
155
95
$prophecy = $this->prophesize(SomeModel::class)->willImplement(SomeInterface::class);
@@ -158,25 +98,6 @@ final class ExampleTest extends Framework\TestCase
158
98
159
99
// ...
160
100
}
161
-
162
- public function testSomethingElse(): void
163
- {
164
- $testDouble = $this->prophecy->reveal();
165
-
166
- // ...
167
- }
168
-
169
- public function testSomethingDifferent(): void
170
- {
171
- $testDouble = $this->createProphecy()->reveal();
172
-
173
- // ...
174
- }
175
-
176
- private function createProphecy()
177
- {
178
- return $this->prophesize(SomeModel::class)->willImplement(SomeInterface::class);
179
- }
180
101
}
181
102
```
182
103
0 commit comments