123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- declare(strict_types=1);
- namespace OCA\Settings\Tests;
- use OCA\Settings\SetupChecks\PhpDefaultCharset;
- use Test\TestCase;
- class PhpDefaultCharsetTest extends TestCase {
- public function testPass(): void {
- $check = new PhpDefaultCharset();
- $this->assertTrue($check->run());
- }
- public function testFail(): void {
- ini_set('default_charset', 'ISO-8859-15');
- $check = new PhpDefaultCharset();
- $this->assertFalse($check->run());
- ini_restore('default_charset');
- }
- }
|