Update phpstan/phpunit extension
[MAILPOET-3203]
This commit is contained in:
committed by
Veljko V
parent
137245eede
commit
f16601e239
@@ -2,7 +2,7 @@
|
||||
"require": {
|
||||
"phpstan/phpstan": "0.12.48",
|
||||
"phpstan/phpstan-doctrine": "0.12.20",
|
||||
"phpstan/phpstan-phpunit": "0.12.6"
|
||||
"phpstan/phpstan-phpunit": "0.12.16"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
34
tasks/phpstan/composer.lock
generated
34
tasks/phpstan/composer.lock
generated
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "565dfb9397ef736b670a3fa602db71ba",
|
||||
"content-hash": "7f78416c560fac81628a92db62f97565",
|
||||
"packages": [
|
||||
{
|
||||
"name": "nikic/php-parser",
|
||||
@@ -98,20 +98,6 @@
|
||||
"MIT"
|
||||
],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
@@ -182,33 +168,33 @@
|
||||
},
|
||||
{
|
||||
"name": "phpstan/phpstan-phpunit",
|
||||
"version": "0.12.6",
|
||||
"version": "0.12.16",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpstan/phpstan-phpunit.git",
|
||||
"reference": "26394996368b6d033d012547d3197f4e07e23021"
|
||||
"reference": "1dd916d181b0539dea5cd37e91546afb8b107e17"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/26394996368b6d033d012547d3197f4e07e23021",
|
||||
"reference": "26394996368b6d033d012547d3197f4e07e23021",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/1dd916d181b0539dea5cd37e91546afb8b107e17",
|
||||
"reference": "1dd916d181b0539dea5cd37e91546afb8b107e17",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "~7.1",
|
||||
"phpstan/phpstan": "^0.12.4"
|
||||
"php": "^7.1 || ^8.0",
|
||||
"phpstan/phpstan": "^0.12.33"
|
||||
},
|
||||
"conflict": {
|
||||
"phpunit/phpunit": "<7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"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",
|
||||
"jakub-onderka/php-parallel-lint": "^1.0",
|
||||
"phing/phing": "^2.16.0",
|
||||
"phpstan/phpstan-strict-rules": "^0.12",
|
||||
"phpunit/phpunit": "^7.0",
|
||||
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
|
||||
"satooshi/php-coveralls": "^1.0",
|
||||
"slevomat/coding-standard": "^4.7.2"
|
||||
},
|
||||
@@ -234,7 +220,7 @@
|
||||
"MIT"
|
||||
],
|
||||
"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": [],
|
||||
|
@@ -6,7 +6,7 @@ parameters:
|
||||
- ../../vendor/autoload.php
|
||||
- ../../vendor/codeception/codeception/autoload.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/IntegrationTesterActions.php
|
||||
- ../../tests/_support/_generated/UnitTesterActions.php
|
||||
|
@@ -92,8 +92,13 @@ class BeaconTest extends \MailPoetTest {
|
||||
|
||||
public function testItReturnsCurrentThemeNameAndVersion() {
|
||||
$currentTheme = wp_get_theme();
|
||||
expect($this->beaconData['Current Theme'])->stringContainsString($currentTheme->get('Name'));
|
||||
expect($this->beaconData['Current Theme'])->stringContainsString($currentTheme->get('Version'));
|
||||
$name = $currentTheme->get('Name');
|
||||
$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() {
|
||||
|
Reference in New Issue
Block a user