Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class OptionsRequestBehaviorTest extends AbstractTestCase |
||
14 | { |
||
15 | /** |
||
16 | * @expectedException \yii\base\ExitException |
||
17 | */ |
||
18 | public function testExit(): void |
||
19 | { |
||
20 | $_SERVER['REQUEST_METHOD'] = 'OPTIONS'; |
||
21 | $behavior = new OptionsRequestBehavior([ |
||
22 | 'response' => new class extends web\Response |
||
23 | { |
||
24 | public function send(): void |
||
31 | |||
32 | public function testNotExit(): void |
||
39 | } |
||
40 |