Skip to content

Commit fa35c91

Browse files
committed
Update to PHPUnit 9 and PHP 8.1 for the testing env.
1 parent f167def commit fa35c91

File tree

3 files changed

+21
-39
lines changed

3 files changed

+21
-39
lines changed

.scrutinizer.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ build:
55
override: true
66
environment:
77
php:
8-
version: 7.4
8+
version: 8.1
99
compile_options: '--with-openssl --with-curl --enable-mbstring --enable-mbregex --enable-bcmath --with-mhash --with-xmlrpc --enable-opcache --enable-intl --with-pear --enable-fpm --with-zlib-dir --enable-inline-optimization --with-bz2 --with-zlib'
10-
pecl_extensions:
11-
- xdebug-2.9.8
1210
tests:
1311
override:
1412
- php-scrutinizer-run --enable-security-analysis

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@
3030
"marc-mabe/php-enum": "^4.7"
3131
},
3232
"require-dev": {
33-
"phpunit/phpunit": "^8.5",
33+
"phpunit/phpunit": "^9.5",
3434
"fakerphp/faker": "^1.17",
3535
"friendsofphp/php-cs-fixer": "^3.8.0",
3636
"squizlabs/php_codesniffer": "^3.7",
3737
"php-coveralls/php-coveralls": "^2.5.2"
3838
},
3939
"scripts": {
4040
"test": "./vendor/bin/phpunit",
41+
"test-cov": "./vendor/bin/phpunit --coverage-html coverage",
4142
"cs-fix": "./vendor/bin/php-cs-fixer fix --allow-risky yes"
4243
},
4344
"options": {

phpunit.xml.dist

Lines changed: 18 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
4-
<phpunit backupGlobals="false"
5-
backupStaticAttributes="false"
6-
bootstrap="./tests/bootstrap.php"
7-
colors="true"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
11-
processIsolation="false"
12-
stopOnFailure="false">
13-
14-
<php>
15-
<!-- Specify the value of your BigBlueButton secret -->
16-
<env name="BBB_SECRET" value="8cd8ef52e8e101574e400365b55e11a6"/>
17-
<!-- Specify the Server Base URL of your BigBlueButton -->
18-
<env name="BBB_SERVER_BASE_URL" value="https://test-install.blindsidenetworks.com/bigbluebutton/"/>
19-
</php>
20-
21-
<logging>
22-
<log type="coverage-html" target="./coverage"/>
23-
</logging>
24-
25-
<filter>
26-
<whitelist processUncoveredFilesFromWhitelist="true">
27-
<directory suffix=".php">./src/</directory>
28-
</whitelist>
29-
</filter>
30-
31-
<testsuites>
32-
<testsuite name="BigBlueButton test suit">
33-
<directory>./tests/</directory>
34-
</testsuite>
35-
</testsuites>
36-
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="./tests/bootstrap.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage processUncoveredFiles="true">
4+
<include>
5+
<directory suffix=".php">./src/</directory>
6+
</include>
7+
</coverage>
8+
<php>
9+
<env name="XDEBUG_MODE" value="coverage"/>
10+
<!-- Specify the value of your BigBlueButton secret -->
11+
<env name="BBB_SECRET" value="8cd8ef52e8e101574e400365b55e11a6"/>
12+
<!-- Specify the Server Base URL of your BigBlueButton -->
13+
<env name="BBB_SERVER_BASE_URL" value="https://test-install.blindsidenetworks.com/bigbluebutton/"/>
14+
</php>
15+
<testsuites>
16+
<testsuite name="BigBlueButton test suit">
17+
<directory>./tests/</directory>
18+
</testsuite>
19+
</testsuites>
3720
</phpunit>

0 commit comments

Comments
 (0)