Update phpstan/phpunit extension

[MAILPOET-3203]
This commit is contained in:
Rostislav Wolny
2020-10-08 13:22:39 +02:00
committed by Veljko V
parent 137245eede
commit f16601e239
4 changed files with 19 additions and 28 deletions

View File

@@ -2,7 +2,7 @@
"require": { "require": {
"phpstan/phpstan": "0.12.48", "phpstan/phpstan": "0.12.48",
"phpstan/phpstan-doctrine": "0.12.20", "phpstan/phpstan-doctrine": "0.12.20",
"phpstan/phpstan-phpunit": "0.12.6" "phpstan/phpstan-phpunit": "0.12.16"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {

View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "565dfb9397ef736b670a3fa602db71ba", "content-hash": "7f78416c560fac81628a92db62f97565",
"packages": [ "packages": [
{ {
"name": "nikic/php-parser", "name": "nikic/php-parser",
@@ -98,20 +98,6 @@
"MIT" "MIT"
], ],
"description": "PHPStan - PHP Static Analysis Tool", "description": "PHPStan - PHP Static Analysis Tool",
"funding": [
{
"url": "https://github.com/ondrejmirtes",
"type": "github"
},
{
"url": "https://www.patreon.com/phpstan",
"type": "patreon"
},
{
"url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan",
"type": "tidelift"
}
],
"time": "2020-10-01T13:20:16+00:00" "time": "2020-10-01T13:20:16+00:00"
}, },
{ {
@@ -182,33 +168,33 @@
}, },
{ {
"name": "phpstan/phpstan-phpunit", "name": "phpstan/phpstan-phpunit",
"version": "0.12.6", "version": "0.12.16",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan-phpunit.git", "url": "https://github.com/phpstan/phpstan-phpunit.git",
"reference": "26394996368b6d033d012547d3197f4e07e23021" "reference": "1dd916d181b0539dea5cd37e91546afb8b107e17"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/26394996368b6d033d012547d3197f4e07e23021", "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/1dd916d181b0539dea5cd37e91546afb8b107e17",
"reference": "26394996368b6d033d012547d3197f4e07e23021", "reference": "1dd916d181b0539dea5cd37e91546afb8b107e17",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "~7.1", "php": "^7.1 || ^8.0",
"phpstan/phpstan": "^0.12.4" "phpstan/phpstan": "^0.12.33"
}, },
"conflict": { "conflict": {
"phpunit/phpunit": "<7.0" "phpunit/phpunit": "<7.0"
}, },
"require-dev": { "require-dev": {
"consistence/coding-standard": "^3.5", "consistence/coding-standard": "^3.5",
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4", "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"ergebnis/composer-normalize": "^2.0.2", "ergebnis/composer-normalize": "^2.0.2",
"jakub-onderka/php-parallel-lint": "^1.0", "jakub-onderka/php-parallel-lint": "^1.0",
"phing/phing": "^2.16.0", "phing/phing": "^2.16.0",
"phpstan/phpstan-strict-rules": "^0.12", "phpstan/phpstan-strict-rules": "^0.12",
"phpunit/phpunit": "^7.0", "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
"satooshi/php-coveralls": "^1.0", "satooshi/php-coveralls": "^1.0",
"slevomat/coding-standard": "^4.7.2" "slevomat/coding-standard": "^4.7.2"
}, },
@@ -234,7 +220,7 @@
"MIT" "MIT"
], ],
"description": "PHPUnit extensions and rules for PHPStan", "description": "PHPUnit extensions and rules for PHPStan",
"time": "2020-01-10T12:07:21+00:00" "time": "2020-08-05T13:28:50+00:00"
} }
], ],
"packages-dev": [], "packages-dev": [],

View File

@@ -6,7 +6,7 @@ parameters:
- ../../vendor/autoload.php - ../../vendor/autoload.php
- ../../vendor/codeception/codeception/autoload.php - ../../vendor/codeception/codeception/autoload.php
- ../../vendor/codeception/verify/src/Codeception/function.php - ../../vendor/codeception/verify/src/Codeception/function.php
- ../../vendor/codeception/verify/src/Codeception/Verify.php - ../../vendor/codeception/verify/src/Codeception/Verify/Verify.php
- ../../tests/_support/_generated/AcceptanceTesterActions.php - ../../tests/_support/_generated/AcceptanceTesterActions.php
- ../../tests/_support/_generated/IntegrationTesterActions.php - ../../tests/_support/_generated/IntegrationTesterActions.php
- ../../tests/_support/_generated/UnitTesterActions.php - ../../tests/_support/_generated/UnitTesterActions.php

View File

@@ -92,8 +92,13 @@ class BeaconTest extends \MailPoetTest {
public function testItReturnsCurrentThemeNameAndVersion() { public function testItReturnsCurrentThemeNameAndVersion() {
$currentTheme = wp_get_theme(); $currentTheme = wp_get_theme();
expect($this->beaconData['Current Theme'])->stringContainsString($currentTheme->get('Name')); $name = $currentTheme->get('Name');
expect($this->beaconData['Current Theme'])->stringContainsString($currentTheme->get('Version')); $version = $currentTheme->get('Version');
assert(is_string($name));
assert(is_string($version));
expect($version)->string();
expect($this->beaconData['Current Theme'])->stringContainsString($name);
expect($this->beaconData['Current Theme'])->stringContainsString($version);
} }
public function testItReturnsActivePlugins() { public function testItReturnsActivePlugins() {