Skip to content

Commit 243dc75

Browse files
authored
Merge pull request #66 from blitz-php/devs
fix test check phpini opcache
2 parents 09af8d8 + f5d6edd commit 243dc75

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

spec/system/framework/Security/CheckPhpIni.spec.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515

1616
describe('Security / CheckPhpIni', function (): void {
1717
beforeAll(function(): void {
18-
$ini = ini_get_all();
18+
$ini = ini_get_all();
19+
$default = ['global_value' => 'disabled', 'local_value' => 'disabled'];
1920

20-
$this->display_errors = $ini['display_errors'] ?? ['global_value' => 'disabled', 'local_value' => 'disabled'];
21-
$this->opcache = $ini['opcache'] ?? ['global_value' => 'disabled', 'local_value' => 'disabled'];
21+
$this->display_errors = $ini['display_errors'] ?? $default;
22+
$this->opcache = $ini['opcache.save_comments'] ?? $default;
2223
});
2324

2425
it('Check ini', function (): void {

0 commit comments

Comments
 (0)