Skip to content

Commit 7da08c3

Browse files
authored
Merge pull request #1008 from php-telegram-bot/feature/upgrade-phpunit
Upgrade PHPUnit and PHPCS
2 parents e9c6939 + 825d51b commit 7da08c3

File tree

151 files changed

+976
-445
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+976
-445
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
.DS_Store
66
.idea
77
.phpintel
8+
.phpunit.result.cache
89

910
# Composer
1011
/composer.phar

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@ cache:
1111
- $HOME/.composer/cache
1212

1313
php:
14+
- 7.4snapshot
1415
- 7.3
1516
- 7.2
16-
- 7.1
17-
- 7.0
18-
- 5.6
19-
- 5.5
2017
- nightly
2118
- hhvm
2219

2320
matrix:
2421
allow_failures:
22+
- php: 7.4snapshot
2523
- php: nightly
2624
- php: hhvm
2725
fast_finish: true

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
1111
- Static boolean property `SystemCommand::$execute_deprecated` (must be assigned before handling the request) to try and execute any deprecated system command.
1212
### Changed
1313
- Small readme and code fixes / simplifications.
14+
- Upgrade PHPUnit to 8.x and PHPCS to 3.5. For tests now minimum PHP version is 7.2.
1415
### Deprecated
1516
### Removed
1617
- Service message system commands, which are now handled by `GenericmessageCommand`.
1718
### Fixed
1819
- Boolean value for Polls gets saved correctly in MySQL DB.
1920
- Correctly use `Request::answerInlineQuery` in `InlineQuery::answer`.
21+
- PSR-12 incompatibilities in the codebase.
2022
### Security
2123

2224
## [0.60.0] - 2019-08-16

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
"guzzlehttp/guzzle": "^6.3"
3434
},
3535
"require-dev": {
36-
"phpunit/phpunit": "^4.8|^5.7|^6.5|^7.5|^8.1",
37-
"squizlabs/php_codesniffer": "^3.4"
36+
"phpunit/phpunit": "^8.4",
37+
"squizlabs/php_codesniffer": "^3.4",
38+
"dms/phpunit-arraysubset-asserts": "^0.1.0"
3839
},
3940
"autoload": {
4041
"psr-4": {

0 commit comments

Comments
 (0)