Skip to content

Commit

Permalink
Refrain from using deprecated annotation key/value pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Apr 5, 2020
1 parent 5c81680 commit 51bc4c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/php/web/frontend/unittest/HandlingTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function post() {
);
}

#[@test, @expect(class= Error::class, withMessage= '/Method PATCH not supported by any delegate/')]
#[@test, @expect(['class' => Error::class, 'withMessage'=> '/Method PATCH not supported by any delegate/'])]
public function unsupported_verb() {
$fixture= new Frontend(new Users(), newinstance(Templates::class, [], [
'write' => function($template, $context, $out) { /* NOOP */ }
Expand All @@ -155,7 +155,7 @@ public function unsupported_verb() {
$this->handle($fixture, 'PATCH', '/users/1', [], 'username=@illegal@');
}

#[@test, @expect(class= Error::class, withMessage= '/Illegal username ".+"/')]
#[@test, @expect(['class' => Error::class, 'withMessage'=> '/Illegal username ".+"/'])]
public function exceptions_result_in_internal_server_error() {
$fixture= new Frontend(new Users(), newinstance(Templates::class, [], [
'write' => function($template, $context, $out) { /* NOOP */ }
Expand Down

0 comments on commit 51bc4c5

Please sign in to comment.