Skip to content

Commit a889c79

Browse files
authored
Merge pull request #71 from iMattPro/updates
Update composer installers
2 parents 70c0230 + 1bf2d09 commit a889c79

8 files changed

Lines changed: 21 additions & 23 deletions

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
],
2121
"require": {
2222
"php": ">=8.1",
23-
"composer/installers": "~1.0"
23+
"composer/installers": "^1.0 || ^2.0"
2424
},
2525
"extra": {
2626
"display-name": "Team Security Measures",

phpunit.xml.dist

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
44
backupGlobals="true"
5-
backupStaticAttributes="false"
65
colors="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
106
processIsolation="false"
117
stopOnFailure="false"
128
cacheResult="false"
139
bootstrap="../../../../tests/bootstrap.php"
14-
>
15-
<coverage>
16-
<include>
17-
<directory suffix=".php">./</directory>
18-
</include>
19-
<exclude>
20-
<directory suffix=".php">./language/</directory>
21-
<directory suffix=".php">./migrations/</directory>
22-
<directory suffix=".php">./tests/</directory>
23-
</exclude>
24-
</coverage>
10+
backupStaticProperties="false">
2511
<testsuites>
2612
<testsuite name="Extension Test Suite">
2713
<directory suffix="_test.php">./tests</directory>
@@ -31,4 +17,16 @@
3117
<directory suffix="_test.php">./tests/functional/</directory>
3218
</testsuite>
3319
</testsuites>
20+
<source restrictDeprecations="true"
21+
restrictNotices="true"
22+
restrictWarnings="true">
23+
<include>
24+
<directory suffix=".php">./</directory>
25+
</include>
26+
<exclude>
27+
<directory suffix=".php">./language/</directory>
28+
<directory suffix=".php">./migrations/</directory>
29+
<directory suffix=".php">./tests/</directory>
30+
</exclude>
31+
</source>
3432
</phpunit>

tests/event/delete_log_security_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class delete_log_security_test extends listener_base
1717
*
1818
* @return array Array of test data
1919
*/
20-
public function delete_logs_security_data()
20+
public static function delete_logs_security_data()
2121
{
2222
return [
2323
['admin', LOG_ADMIN, [], false],

tests/event/email_change_notification_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class email_change_notification_test extends listener_base
1717
*
1818
* @return array Array of test data
1919
*/
20-
public function email_change_notification_data()
20+
public static function email_change_notification_data()
2121
{
2222
return array(
2323
array(

tests/event/failed_logins_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class failed_logins_test extends listener_base
1717
*
1818
* @return array Array of test data
1919
*/
20-
public function log_failed_login_attempts_data()
20+
public static function log_failed_login_attempts_data()
2121
{
2222
return array(
2323
array(true, true, array('user_row' => array('user_id' => 2))),

tests/event/load_language_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class load_language_test extends listener_base
1717
*
1818
* @return array Array of test data
1919
*/
20-
public function load_language_on_setup_data()
20+
public static function load_language_on_setup_data()
2121
{
2222
return array(
2323
array(

tests/event/login_notification_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class login_notification_test extends listener_base
1717
*
1818
* @return array Array of test data
1919
*/
20-
public function acp_login_notification_data()
20+
public static function acp_login_notification_data()
2121
{
2222
return array(
2323
array(true, true, 'foo', '1:1:1', array(

tests/event/team_passwords_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class team_passwords_test extends listener_base
1717
*
1818
* @return array Array of test data
1919
*/
20-
public function set_team_password_configs_data()
20+
public static function set_team_password_configs_data()
2121
{
2222
return array(
2323
array('core.acp_users_overview_before', 'reg_details', array(), true, true, 30, 'PASS_TYPE_SYMBOL',),

0 commit comments

Comments
 (0)