@@ -21,12 +21,13 @@ class AugmentPropertiesTest extends OpenApiTestCase
2121{
2222 public function testAugmentProperties (): void
2323 {
24- $ analysis = $ this ->analysisFromFixtures (['Customer.php ' ]);
25- $ analysis ->process ([
24+ $ analysis = $ this ->analysisFromFixtures ([
25+ 'Customer.php ' ,
26+ ], $ this ->processorPipeline ([
2627 new MergeIntoOpenApi (),
2728 new MergeIntoComponents (),
2829 new AugmentSchemas (),
29- ]);
30+ ])) ;
3031
3132 $ customer = $ analysis ->openapi ->components ->schemas [0 ];
3233 $ firstName = $ customer ->properties [0 ];
@@ -67,7 +68,8 @@ public function testAugmentProperties(): void
6768 $ this ->assertSame (Generator::UNDEFINED , $ endorsedFriends ->nullable );
6869 $ this ->assertSame (Generator::UNDEFINED , $ endorsedFriends ->allOf );
6970
70- $ analysis ->process (new AugmentProperties ());
71+ $ this ->processorPipeline ([new AugmentProperties ()])->process ($ analysis );
72+ ;
7173
7274 $ expectedValues = [
7375 'property ' => 'firstname ' ,
@@ -135,12 +137,14 @@ public function testAugmentProperties(): void
135137
136138 public function testTypedProperties (): void
137139 {
138- $ analysis = $ this ->analysisFromFixtures (['TypedProperties.php ' ]);
139- $ analysis ->process ([
140+ $ analysis = $ this ->analysisFromFixtures ([
141+ 'TypedProperties.php ' ,
142+ ], $ this ->processorPipeline ([
140143 new MergeIntoOpenApi (),
141144 new MergeIntoComponents (),
142145 new AugmentSchemas (),
143- ]);
146+ ]));
147+
144148 [
145149 $ stringType ,
146150 $ intType ,
@@ -235,7 +239,7 @@ public function testTypedProperties(): void
235239 'type ' => Generator::UNDEFINED ,
236240 ]);
237241
238- $ analysis -> process ([new AugmentProperties ()]);
242+ $ this -> processorPipeline ([new AugmentProperties ()])-> process ( $ analysis );
239243
240244 $ this ->assertName ($ stringType , [
241245 'property ' => 'stringType ' ,
0 commit comments