File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,10 +42,15 @@ public function testCreate(): void
4242 $ args = $ field ['args ' ];
4343 self ::assertArrayHasKey ('arg1 ' , $ args );
4444 self ::assertIsArray ($ args ['arg1 ' ]);
45- self ::assertSame (Type::int (), $ args ['arg1 ' ]['type ' ]);
46- self ::assertSame ('Argument Description ' , $ args ['arg1 ' ]['description ' ]);
47- self ::assertSame ('Reason ' , $ args ['arg1 ' ]['deprecationReason ' ]);
48- self ::assertSame (1 , $ args ['arg1 ' ]['defaultValue ' ]);
45+ $ arg = $ args ['arg1 ' ];
46+ self ::assertArrayHasKey ('type ' , $ arg );
47+ self ::assertSame (Type::int (), $ arg ['type ' ]);
48+ self ::assertArrayHasKey ('description ' , $ arg );
49+ self ::assertSame ('Argument Description ' , $ arg ['description ' ]);
50+ self ::assertArrayHasKey ('deprecationReason ' , $ arg );
51+ self ::assertSame ('Reason ' , $ arg ['deprecationReason ' ]);
52+ self ::assertArrayHasKey ('defaultValue ' , $ arg );
53+ self ::assertSame (1 , $ arg ['defaultValue ' ]);
4954 }
5055
5156 public function testCreateFromEnum (): void
You can’t perform that action at this time.
0 commit comments