File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/php/net/xp_framework/unittest/reflection Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ public function un_annotated_parameter_annotations_are_empty() {
320
320
$ this ->assertEquals ([], $ this ->method ('public function fixture($param) { } ' )->getParameter (0 )->getAnnotations ());
321
321
}
322
322
323
- #[Test, Expect([ ' class ' => ElementNotFoundException::class, ' withMessage ' => 'Annotation "test" does not exist ' ] )]
323
+ #[Test, Expect(class: ElementNotFoundException::class, withMessage: 'Annotation "test" does not exist ' )]
324
324
public function cannot_get_test_annotation_for_un_annotated_parameter () {
325
325
$ this ->method ('public function fixture($param) { } ' )->getParameter (0 )->getAnnotation ('test ' );
326
326
}
@@ -335,7 +335,7 @@ public function optional_parameter() {
335
335
$ this ->assertTrue ($ this ->method ('public function fixture($param= true) { } ' )->getParameter (0 )->isOptional ());
336
336
}
337
337
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 ' )]
339
339
public function required_parameter_does_not_have_default_value () {
340
340
$ this ->method ('public function fixture($param) { } ' )->getParameter (0 )->getDefaultValue ();
341
341
}
You can’t perform that action at this time.
0 commit comments