mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
41 lines
762 B
PHP
41 lines
762 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\ArchPresets;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class Security extends AbstractPreset
|
|
{
|
|
/**
|
|
* Executes the arch preset.
|
|
*/
|
|
public function execute(): void
|
|
{
|
|
$this->expectations[] = expect([
|
|
'md5',
|
|
'sha1',
|
|
'uniqid',
|
|
'rand',
|
|
'mt_rand',
|
|
'tempnam',
|
|
'str_shuffle',
|
|
'shuffle',
|
|
'array_rand',
|
|
'eval',
|
|
'exec',
|
|
'shell_exec',
|
|
'system',
|
|
'passthru',
|
|
'create_function',
|
|
'unserialize',
|
|
'extract',
|
|
'mb_parse_str',
|
|
'dl',
|
|
'assert',
|
|
])->not->toBeUsed();
|
|
}
|
|
}
|