Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathpyrameter.php
More file actions
Latest commit
51 lines (47 loc) · 1.47 KB
/
Copy pathpyrameter.php
File metadata and controls
51 lines (47 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
declare(strict_types=1);
/**
* This file is part of CodeIgniter Shield.
*
* (c) CodeIgniter Foundation <admin@codeigniter.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
useBoundwize\Pyrameter\Config\PyrameterConfig;
useBoundwize\Pyrameter\TestKind;
useCodeIgniter\Test\DatabaseTestTrait;
useCodeIgniter\Test\FeatureTestTrait;
useTests\Authentication\Filters\AbstractFilterTestCase;
useTests\Support\DatabaseTestCase;
return PyrameterConfig::create()
->usesClass(
DatabaseTestTrait::class,
TestKind::Integration,
unless: [FeatureTestTrait::class, AbstractFilterTestCase::class],
)
->usesClass(
DatabaseTestCase::class,
TestKind::Integration,
unless: [FeatureTestTrait::class, AbstractFilterTestCase::class],
)
->usesClass(
FeatureTestTrait::class,
TestKind::Functional,
)
->usesClass(
AbstractFilterTestCase::class,
TestKind::Functional,
)
->usesFunction('copy', TestKind::Integration)
->usesFunction('file_get_contents', TestKind::Integration)
->usesFunction('getcwd', TestKind::Integration)
->usesFunction('is_file', TestKind::Integration)
->usesFunction('unlink', TestKind::Integration)
->targetShape(
unit: ['min' => 40],
functional: ['max' => 20],
integration: ['max' => 50],
e2e: ['max' => 0],
)
->failOnViolation();