Skip to content

Commit 976e50e

Browse files
author
杨柳
authored
Add ValidationMiddleware Test.
1 parent 203a974 commit 976e50e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

tests/Stub/DemoController.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
/**
5+
* This file is part of Hyperf.
6+
*
7+
* @link https://www.hyperf.io
8+
* @document https://doc.hyperf.io
9+
* @contact [email protected]
10+
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
11+
*/
12+
13+
namespace HyperfTest\Validation\Cases\Stub;
14+
15+
class DemoController
16+
{
17+
public function signUp(DemoRequest $request)
18+
{
19+
return $request->all();
20+
}
21+
22+
public function signIn(DemoRequest $request)
23+
{
24+
return $request->all();
25+
}
26+
27+
public function signOut(DemoRequest $request)
28+
{
29+
return $request->all();
30+
}
31+
}

0 commit comments

Comments
 (0)