Skip to content

Commit a43f45e

Browse files
committed
QA: Use named annotation arguments
1 parent c0dba42 commit a43f45e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/php/net/xp_framework/unittest/reflection/MethodParametersTest.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public function un_annotated_parameter_annotations_are_empty() {
320320
$this->assertEquals([], $this->method('public function fixture($param) { }')->getParameter(0)->getAnnotations());
321321
}
322322

323-
#[Test, Expect(['class' => ElementNotFoundException::class, 'withMessage' => 'Annotation "test" does not exist'])]
323+
#[Test, Expect(class: ElementNotFoundException::class, withMessage: 'Annotation "test" does not exist')]
324324
public function cannot_get_test_annotation_for_un_annotated_parameter() {
325325
$this->method('public function fixture($param) { }')->getParameter(0)->getAnnotation('test');
326326
}
@@ -335,7 +335,7 @@ public function optional_parameter() {
335335
$this->assertTrue($this->method('public function fixture($param= true) { }')->getParameter(0)->isOptional());
336336
}
337337

338-
#[Test, Expect(['class' => IllegalStateException::class, 'withMessage' => 'Parameter "param" has no default value'])]
338+
#[Test, Expect(class: IllegalStateException::class, withMessage: 'Parameter "param" has no default value')]
339339
public function required_parameter_does_not_have_default_value() {
340340
$this->method('public function fixture($param) { }')->getParameter(0)->getDefaultValue();
341341
}

0 commit comments

Comments
 (0)