Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

Commit ec91735

Browse files
committed
Require PHP 8
1 parent e0cb4bb commit ec91735

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.scrutinizer.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ tools:
1111
external_code_coverage: false
1212

1313
build:
14+
services:
15+
mysql: 5.7
1416
environment:
15-
version: 8.1.2
16-
mysql: false
17+
php:
18+
version: 8.1.2
19+
ini:
20+
xdebug.mode: coverage
21+
mysql: 5.7
1722
node: false
1823
postgresql: false
1924
mongodb: false
@@ -30,7 +35,8 @@ build:
3035
dependencies:
3136
before:
3237
- composer self-update
33-
- composer update --no-interaction --prefer-dist --no-progress
38+
- composer install --no-interaction --prefer-dist --no-progress
39+
- mysql -u root -e "CREATE DATABASE IF NOT EXISTS database_test CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
3440
tests:
3541
before:
3642
- command: composer test:coverage

tests/BaseTest.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,10 @@ protected function createTestTable(): void
5656
`created_user_id` INT(11) DEFAULT NULL,
5757
`updated` DATETIME DEFAULT NULL,
5858
`updated_user_id` INT(11) DEFAULT NULL,
59-
`deleted` DATETIME DEFAULT NULL,
60-
`deleted_user_id` INT(11) DEFAULT NULL,
6159
PRIMARY KEY (`id`),
6260
KEY `created_user_id` (`created_user_id`),
63-
KEY `updated_user_id` (`updated_user_id`),
64-
KEY `deleted_user_id` (`deleted_user_id`)
65-
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;'
61+
KEY `updated_user_id` (`updated_user_id`)
62+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;'
6663
);
6764
}
6865

@@ -76,8 +73,8 @@ protected function getPdo(): PDO
7673
$host = '127.0.0.1';
7774
$username = 'root';
7875
$password = isset($_SERVER['GITHUB_ACTIONS']) ? 'root' : '';
79-
$charset = 'utf8';
80-
$collate = 'utf8_unicode_ci';
76+
$charset = 'utf8mb4';
77+
$collate = 'utf8mb4_unicode_ci';
8178
$options = [
8279
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
8380
PDO::ATTR_PERSISTENT => false,

tests/bootstrap.php

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)