@@ -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
@@ -71,7 +72,7 @@ public function testAugmentProperties(): void
7172 $ this ->assertSame (Generator::UNDEFINED , $ endorsedFriends ->nullable );
7273 $ this ->assertSame (Generator::UNDEFINED , $ endorsedFriends ->allOf );
7374
74- $ analysis -> process ( $ this ->initializeProcessors ([new AugmentProperties ()]));
75+ $ this ->processorPipeline ([new AugmentProperties ()])-> process ( $ analysis );
7576
7677 $ expectedValues = [
7778 'property ' => 'firstname ' ,
@@ -149,12 +150,14 @@ public function testAugmentProperties(): void
149150
150151 public function testTypedProperties (): void
151152 {
152- $ analysis = $ this ->analysisFromFixtures (['TypedProperties.php ' ]);
153- $ analysis ->process ([
153+ $ analysis = $ this ->analysisFromFixtures ([
154+ 'TypedProperties.php ' ,
155+ ], $ this ->processorPipeline ([
154156 new MergeIntoOpenApi (),
155157 new MergeIntoComponents (),
156158 new AugmentSchemas (),
157- ]);
159+ ]));
160+
158161 [
159162 $ stringType ,
160163 $ intType ,
@@ -254,7 +257,7 @@ public function testTypedProperties(): void
254257 'type ' => Generator::UNDEFINED ,
255258 ]);
256259
257- $ analysis -> process ( $ this ->initializeProcessors ([new AugmentProperties ()]));
260+ $ this ->processorPipeline ([new AugmentProperties ()])-> process ( $ analysis );
258261
259262 $ this ->assertName ($ stringType , [
260263 'property ' => 'stringType ' ,
@@ -351,7 +354,7 @@ public function testTypedProperties(): void
351354 protected function assertName (OA \Property $ property , array $ expectedValues ): void
352355 {
353356 foreach ($ expectedValues as $ key => $ val ) {
354- $ this ->assertSame ($ val , $ property ->$ key , '@OA\Property()-> ' . $ key );
357+ $ this ->assertSame ($ val , $ property ->$ key , '@OA\Property()->property based on propertyname ' );
355358 }
356359 }
357360}
0 commit comments