@@ -24,23 +24,23 @@ public function getApplication(): Application
24
24
25
25
public function testSuccessfulSolution (): void
26
26
{
27
- $ this ->runExercise ('correct-solution/solution.php ' );
27
+ $ this ->runExercise ('correct-solution/solution.php ' , self :: DIRECTORY_SOLUTION );
28
28
29
29
$ this ->assertVerifyWasSuccessful ();
30
30
$ this ->assertOutputWasCorrect ();
31
31
}
32
32
33
33
public function testSuccessfulSolutionWithPromotedProperty (): void
34
34
{
35
- $ this ->runExercise ('correct-solution-promoted/solution.php ' );
35
+ $ this ->runExercise ('correct-solution-promoted/solution.php ' , self :: DIRECTORY_SOLUTION );
36
36
37
37
$ this ->assertVerifyWasSuccessful ();
38
38
$ this ->assertOutputWasCorrect ();
39
39
}
40
40
41
41
public function testModifyingExternalCodeFails (): void
42
42
{
43
- $ this ->runExercise ('modified-external-code/solution.php ' );
43
+ $ this ->runExercise ('modified-external-code/solution.php ' , self :: DIRECTORY_SOLUTION );
44
44
45
45
$ this ->assertVerifyWasNotSuccessful ();
46
46
$ this ->assertOutputWasCorrect ();
@@ -57,7 +57,7 @@ function (FileComparisonFailure $failure) {
57
57
58
58
public function testNotCallingDeserializeFails (): void
59
59
{
60
- $ this ->runExercise ('no-deserialize-call/solution.php ' );
60
+ $ this ->runExercise ('no-deserialize-call/solution.php ' , self :: DIRECTORY_SOLUTION );
61
61
62
62
$ this ->assertVerifyWasNotSuccessful ();
63
63
$ this ->assertOutputWasIncorrect ();
@@ -73,7 +73,7 @@ function (FunctionRequirementsFailure $failure) {
73
73
74
74
public function testNotDumpingObjectFails (): void
75
75
{
76
- $ this ->runExercise ('no-var-dump/solution.php ' );
76
+ $ this ->runExercise ('no-var-dump/solution.php ' , self :: DIRECTORY_SOLUTION );
77
77
78
78
$ this ->assertVerifyWasNotSuccessful ();
79
79
$ this ->assertOutputWasIncorrect ();
@@ -89,7 +89,7 @@ function (FunctionRequirementsFailure $failure) {
89
89
90
90
public function testWhenOutputIsIncorrectComparisonFails (): void
91
91
{
92
- $ this ->runExercise ('incorrect-output/solution.php ' );
92
+ $ this ->runExercise ('incorrect-output/solution.php ' , self :: DIRECTORY_SOLUTION );
93
93
94
94
$ this ->assertVerifyWasNotSuccessful ();
95
95
$ this ->assertOutputWasIncorrect ();
@@ -102,7 +102,7 @@ public function testWhenOutputIsIncorrectComparisonFails(): void
102
102
103
103
public function testWhenNoClassNamedReviewDefined (): void
104
104
{
105
- $ this ->runExercise ('no-review-class/solution.php ' );
105
+ $ this ->runExercise ('no-review-class/solution.php ' , self :: DIRECTORY_SOLUTION );
106
106
107
107
$ this ->assertVerifyWasNotSuccessful ();
108
108
@@ -111,7 +111,7 @@ public function testWhenNoClassNamedReviewDefined(): void
111
111
112
112
public function testWhenNoMethodNamedObfuscateReviewerDefined (): void
113
113
{
114
- $ this ->runExercise ('no-obfuscate-method/solution.php ' );
114
+ $ this ->runExercise ('no-obfuscate-method/solution.php ' , self :: DIRECTORY_SOLUTION );
115
115
116
116
$ this ->assertVerifyWasNotSuccessful ();
117
117
@@ -120,7 +120,7 @@ public function testWhenNoMethodNamedObfuscateReviewerDefined(): void
120
120
121
121
public function testWhenNoAttributeDefinedOnObfuscateReviewerMethod (): void
122
122
{
123
- $ this ->runExercise ('no-attributes/solution.php ' );
123
+ $ this ->runExercise ('no-attributes/solution.php ' , self :: DIRECTORY_SOLUTION );
124
124
125
125
$ this ->assertVerifyWasNotSuccessful ();
126
126
@@ -129,7 +129,7 @@ public function testWhenNoAttributeDefinedOnObfuscateReviewerMethod(): void
129
129
130
130
public function testWhenNoAttributedNamedObfuscateUsedOnMethod (): void
131
131
{
132
- $ this ->runExercise ('no-attribute-named-obfuscate/solution.php ' );
132
+ $ this ->runExercise ('no-attribute-named-obfuscate/solution.php ' , self :: DIRECTORY_SOLUTION );
133
133
134
134
$ this ->assertVerifyWasNotSuccessful ();
135
135
@@ -141,7 +141,7 @@ public function testWhenNoAttributedNamedObfuscateUsedOnMethod(): void
141
141
142
142
public function testWhenNoArgumentsPassedToObfuscateAttribute (): void
143
143
{
144
- $ this ->runExercise ('no-arguments-obfuscate-attribute/solution.php ' );
144
+ $ this ->runExercise ('no-arguments-obfuscate-attribute/solution.php ' , self :: DIRECTORY_SOLUTION );
145
145
146
146
$ this ->assertVerifyWasNotSuccessful ();
147
147
@@ -153,7 +153,7 @@ public function testWhenNoArgumentsPassedToObfuscateAttribute(): void
153
153
154
154
public function testWhenIncorrectPropertyPassedToObfuscateAttribute (): void
155
155
{
156
- $ this ->runExercise ('invalid-arg-obfuscate-attribute/solution.php ' );
156
+ $ this ->runExercise ('invalid-arg-obfuscate-attribute/solution.php ' , self :: DIRECTORY_SOLUTION );
157
157
158
158
$ this ->assertVerifyWasNotSuccessful ();
159
159
@@ -165,7 +165,7 @@ public function testWhenIncorrectPropertyPassedToObfuscateAttribute(): void
165
165
166
166
public function testWhenObfuscateAttributeNotDefined (): void
167
167
{
168
- $ this ->runExercise ('no-obfuscate-class/solution.php ' );
168
+ $ this ->runExercise ('no-obfuscate-class/solution.php ' , self :: DIRECTORY_SOLUTION );
169
169
170
170
$ this ->assertVerifyWasNotSuccessful ();
171
171
@@ -174,7 +174,7 @@ public function testWhenObfuscateAttributeNotDefined(): void
174
174
175
175
public function testWhenObfuscateHasNoAttributes (): void
176
176
{
177
- $ this ->runExercise ('obfuscate-no-attributes/solution.php ' );
177
+ $ this ->runExercise ('obfuscate-no-attributes/solution.php ' , self :: DIRECTORY_SOLUTION );
178
178
179
179
$ this ->assertVerifyWasNotSuccessful ();
180
180
@@ -183,7 +183,7 @@ public function testWhenObfuscateHasNoAttributes(): void
183
183
184
184
public function testWhenObfuscateAttributeIncorrectlyDefined (): void
185
185
{
186
- $ this ->runExercise ('obfuscate-attribute-incorrect/solution.php ' );
186
+ $ this ->runExercise ('obfuscate-attribute-incorrect/solution.php ' , self :: DIRECTORY_SOLUTION );
187
187
188
188
$ this ->assertVerifyWasNotSuccessful ();
189
189
@@ -192,7 +192,7 @@ public function testWhenObfuscateAttributeIncorrectlyDefined(): void
192
192
193
193
public function testWhenObfuscateAttributeHasNoFlags (): void
194
194
{
195
- $ this ->runExercise ('obfuscate-attribute-no-flags/solution.php ' );
195
+ $ this ->runExercise ('obfuscate-attribute-no-flags/solution.php ' , self :: DIRECTORY_SOLUTION );
196
196
197
197
$ this ->assertVerifyWasNotSuccessful ();
198
198
@@ -201,7 +201,7 @@ public function testWhenObfuscateAttributeHasNoFlags(): void
201
201
202
202
public function testWhenObfuscateAttributeConfigurationIsWrong (): void
203
203
{
204
- $ this ->runExercise ('obfuscate-attribute-wrong-target/solution.php ' );
204
+ $ this ->runExercise ('obfuscate-attribute-wrong-target/solution.php ' , self :: DIRECTORY_SOLUTION );
205
205
206
206
$ this ->assertVerifyWasNotSuccessful ();
207
207
@@ -213,7 +213,7 @@ public function testWhenObfuscateAttributeConfigurationIsWrong(): void
213
213
214
214
public function testWhenObfuscateAttributeHasNoPublicPropertyNamedKey (): void
215
215
{
216
- $ this ->runExercise ('no-public-property-named-key/solution.php ' );
216
+ $ this ->runExercise ('no-public-property-named-key/solution.php ' , self :: DIRECTORY_SOLUTION );
217
217
218
218
$ this ->assertVerifyWasNotSuccessful ();
219
219
0 commit comments